6 ms·
It’s called a masonry grid. Images retain their aspect ratio so they don’t need to be cropped. You can kind of simulate it with css but there’s proposals to add
by jkcxn 3y ago
It’s called a masonry grid. Images retain their aspect ratio so they don’t need to be cropped. You can kind of simulate it with css but there’s proposals to add a proper masonry layout to css
- verse 3y agoyeah. I actually wrote the logic for the layout myself (wasn't really happy with the available libraries). may open source this if people are interested!
- ReD_CoDE 3y agoCan you share your GH to follow updates? Also, take a look at this, they have a layout too https://github.com/lit/lit/tree/main/packages/labs/virtualizer https://github.com/lit/lit/tree/main/packages/labs/virtualiz...