Is there a way to do a reverse animation? #1745
Unanswered
kevinRoomies
asked this question in
Support
Replies: 1 comment 2 replies
-
use the imperative api to call the animations when you want them to run, see these docs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a drawer component on web mobile and I'm animating it so that the grey background that block everything behind fade in first, then the drawer slides up from the bottom of the phone. But on leave, I would like to do the reverse, first the drawer sliding out and the background fading out.
The issue with chain animation is that the fading background will always be the first one to trigger. And if I use a state to tell the other animation to go on when the correct one is resting, the issue is that they both depend from the same isOpen value to start the animation on enter and leave so they're still gonna trigger together.
I'm a bit confused if that's a possible behavior.
Beta Was this translation helpful? Give feedback.
All reactions