eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Turn off the animation when it first appears #75

Closed yueduz closed 6 years ago

yueduz commented 7 years ago

Request function

afram commented 7 years ago

@yueduz can you please elaborate on this request? I'm not quite sure what you want :-)

yueduz commented 7 years ago

I do not speak English, i use google translation. I want to disable the playing animation.

Ganasist commented 6 years ago

I think I want what he's also asking about:

Is it possible to suppress the animation on initial load, and only have it animate thereafter? For initial load I just want my items to appear immediately in-place.

afram commented 6 years ago

Well this is just a wrapper over the Masonry library. Try setting transitionDuration to zero.

https://masonry.desandro.com/options.html

Play around with the options. Hard to help further without seeing your code.

Hope this helps!

FullstackJack commented 4 years ago

Yes, the animation is stupid and probably making this less performant than it needs to be. Actually, is desandro's Masonry even using virtualization? I think the community needs a rewrite.