Exit animation with tailwindcss-motion
not working?
#3199
Unanswered
baptisteArno
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This happens because the styling from those classNames doesn't resolve to a known duration. Notice the long animation duration |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering why exit animation with tailwindcss-motion specifically are not working.
Reproduction: https://stackblitz.com/edit/twtsreact-h9anonqq
It seems hidden attribute is added even though the animation duration is 2s. Maybe ark does not detect the animation duration properly in that case?
Adding
style={{"animationDuration": "2s"}}
makes it work. So is there anything we can do to make it work without this workaround?Beta Was this translation helpful? Give feedback.
All reactions