chenjiahan / rodal

A React modal with animations.
https://chenjiahan.github.io/rodal/
MIT License
908 stars 87 forks source link

leaveAnimation doesn't not work with slideDown #38

Closed ayoola-moore closed 6 years ago

ayoola-moore commented 6 years ago

On existing the modal, the slideDown does not seem to work.

chenjiahan commented 6 years ago

@hayola Can you provide a minimal demo of the problem via https://codesandbox.io/s/pgKpvo3om ?

ayoola-moore commented 6 years ago

@chenjiahan I have tried to replicate the problem using the exact code I have saved in the pen. The funny thing is that it works as suppose on the pen. However, here is a video https://ufile.io/z8fsj of the problem. Notice that when I click - the animation slides up rather than slide down as I have specified.

ayoola-moore commented 6 years ago

@chenjiahan https://codesandbox.io/s/p2rml1l6rq

chenjiahan commented 6 years ago

Sorry for the late reply, i think there is no need to use leaveAnimation or enterAnimation in your case, just set animation to slideUp