[Vue]: Native dialog element entry/exit animations #191
Unanswered
binaryartifex
asked this question in
Q&A
Replies: 1 comment
-
You'll need to control the dialog's rendering through state so AnimatePresence can catch it. Here's what I mean: Prevent the default close behavior (@cancel.prevent) Here's the official example: https://examples.motion.dev/vue/modal |
Beta Was this translation helpful? Give feedback.
0 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.
-
has anyone been able to animate the native dialog element? I have a reactive value 'open' that on change, calls the dialog elements showDialog() or close(). ive gotten as far as animating the entry animation but for the life of me, when exiting, either via a click outside the dialog, a close button inside the dialog or (especially) the esc key, the AnimatePresence and dialog key don't seem to help and it immediately exits. would be great to get more insight into how to use motion-v with top-layer elements
Beta Was this translation helpful? Give feedback.
All reactions