no animation for masonry grid

This commit is contained in:
BFlat committed 2023-12-21 21:41:41 +07:00
1 parent 2fd615b31e
commit fed78e247c
1 file changed
+1
@@ -27,6 +27,7 @@ export default function MasonryGrid({
masonryInstance = new Masonry(gridRef.current, {
itemSelector: ".grid-item",
percentPosition: true,
transitionDuration: 0,
});
//Needs this or images will overflow masonry card. It checks if image is loaded then after it is loaded, it resizes the card.