cedricdelpoux / react-responsive-masonry

React responsive masonry component built with css flexbox
https://cedricdelpoux.github.io/react-responsive-masonry/
MIT License
353 stars 35 forks source link

Filtering grid photos by categories? #78

Open ghost opened 2 years ago

ghost commented 2 years ago

Does anyone have an example where you can filter the grid images by categories while keeping the grid on the new active selections. I've tested and it's easy enough by adding css classes to each image, listening to what's selected and hiding all other images, but when there are 3 columns the grid, leaves empty columns that cannot be removed.

Any thoughts?

timbroder commented 3 months ago

We've handled this by removing the photos from the dom when they get hidden, not just hiding them in css