How would I go about animating the exit state of the hover card? #2202
-
Pretty much the title. I tried using [data-state]="closed" but this is applied on the trigger it seems. I tried using framer-motion as well but was running into issues due to it being active on hover instead of on click or something like that to toggle the state. Any pointers? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Example with CSS https://codesandbox.io/p/sandbox/upbeat-hodgkin-5ll4fq?file=%2Fstyles.css%3A19%2C1-24%2C2 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks! This solved it. |
Beta Was this translation helpful? Give feedback.
Example with CSS https://codesandbox.io/p/sandbox/upbeat-hodgkin-5ll4fq?file=%2Fstyles.css%3A19%2C1-24%2C2