eiriklv / react-masonry-component

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

Handling animations #89

Open neovea opened 7 years ago

neovea commented 7 years ago

Hi, nice job on this component :) BTW I checked out the demo page. How do you manage animations on items ? Is there an example available ? Thanks

afram commented 7 years ago

I haven't had a need for it, I'd imagine you'd do it using the standard React animation api?

What kind of animations were you thinking?

danilowoz commented 7 years ago

Hi @afram, can I control the animation or disabled it?

JulienRioux commented 5 years ago

A quick fix is to wrap the component inside a div and removing the transition using CSS:

.masonryWrapper {
  transition: none 0s ease 0s;
}