janosh / svelte-bricks

Naive Svelte Masonry component without column balancing (ragged columns at the bottom)
https://janosh.github.io/svelte-bricks
MIT License
106 stars 4 forks source link

Works with a virtual list? #2

Open nimmolo opened 2 years ago

nimmolo commented 2 years ago

Hi @janosh, thanks for making this! Have you ever tried implementing this with a virtual list library, to make a kind of scrollable "infinite-bricks" UI? I was wondering if you can recommend one that integrates well.

I'm checking v1ack's svelte-virtual-scroll-list but it seems its items handling may interfere.

janosh commented 2 years ago

I remember looking into infinite scrolling at one point. I played around with sveltejs/svelte-virtual-list and Skayo/svelte-tiny-virtual-list a bit. Didn't get very far on a grid or bricks layout before I ran out of time though. This issue and this one are somewhat related.

If you do get something working, definitely report back and share it!

nimmolo commented 2 years ago

Working on it 💪