Recent submissions

Comment · 7 years ago
This doesn't and I think most grid solutions keep the items separate
Comment · 7 years ago
You're right requestAnimationFrame is more efficient than using the resize listener with a delay. I'm actually working on an update to change that. It'll be fixed soon.
Comment · 7 years ago
No, the library doesn't support that. you should be able to achieve the effect with plain html and css though.
Comment · 7 years ago
Makes it much easier to segment the grid into rows or columns
Comment · 7 years ago
When the components in a grid have different heights, a single longer or shorter component stretches the whole row or leaves unpleasant whitespace at the bottom.
Comment · 7 years ago
Depends on the use case. If the grid's items have varying widths then masonry is the better option. However, for a grid with equal width items, I'll definitely go with magic grid. It's just so much lighter (2.3kb minified) than masonry (23.5kb minified).
Comment · 8 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton