Hacker News new | ask | show | jobs
by wucaworld 860 days ago
Very cool! How did you get the collage layout? I noticed images in each column don’t have the same size. I assume images get Centre cropped?
1 comments

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
yeah. 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!
Can 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/virtualiz...
will post on twitter:

https://x.com/verse_

I loved your text effects! You did some cool side-projects

Isn't the time for some big movements? Get in touch