nkbt/react-collapse

Container not animating

Closed this issue · 3 comments

I've been using this library in many times before, but for some reason when trying it in my latest project the collapse is not animating.
I tried to remove everything in my page only having a plain button and the Collapse components, but it still dosen't work. The content inside Collapse goes from hidden to visible instantly without any animation.

nkbt commented

Most likely you need to add CSS transition as Collapse itself no longer performs JS-based animation. Check the readme on the details (and maybe migration guide)

@nkbt yes that was it!
I was so used to this just working out of the box that I didn't even think to check the readme as thoroughly as I should have.
Thanks for releasing and maintaining this library

nkbt commented