Stanko / react-animate-height

Lightweight React component for animating height using CSS transitions. Slide up/down the element, and animate it to any specific height.
https://muffinman.io/react-animate-height
MIT License
758 stars 53 forks source link

Animation does not seem to work in my app or in the official sandbox #131

Closed U-4-E-A closed 1 year ago

U-4-E-A commented 2 years ago

Title says it all, really. I recently moved from v2 to v3 to find the animation does not work in my app. It appears that the animation also does not work on the official sandbox: -

https://codesandbox.io/s/react-animate-height-v3-basic-example-1iggpe

It is acting as though there is a duration of 0. I have tried it in Chrome, FF and Brave... none work. Am I missing something here? Thanks.

Stanko commented 2 years ago

Hello @U-4-E-A,

I've just tried the sandbox you linked and it works fine in both firefox and chrome:

Firefox Chrome

Do you maybe have reduced motion turned on?

U-4-E-A commented 1 year ago

You're correct. Oddly, v2 worked out with animations turned off. Thanks.