bigbite / macy.js

http://macyjs.com/
MIT License
1.3k stars 156 forks source link

Add option to fill container based on item width instead #86

Open alimony opened 3 years ago

alimony commented 3 years ago

As far as I can tell there is no way to let macy fill the container with items based on the width of each item. In my design, the width of each item is much more important than the exact number of columns at each page width. I would like an option to use whatever number of columns given a fixed column width.

mortensassi commented 3 years ago

@alimony i have exact the same problem. the only alternative i know that supports width-based columns is desandros/masonry

https://masonry.desandro.com/options.html#columnwidth

https://codepen.io/desandro/pen/osFxj

alimony commented 3 years ago

Yeah, I'm actually researching alternatives to Masonry because I've found its behaviour buggy lately, maybe because it hasn't kept up with browser development. The last release was three years ago and I don't see much engagement in the issues and PRs either.

mortensassi commented 3 years ago

@alimony i just switched two of my masonry grids from macy to desandors and it works like a charm! maybe you give it a try. i disabled the animationDuration since it looks shit^^ happy to help if you need assistance