Vue animations
up:: Vue Animations can be added by using CSS Animations and adding those classes via Vue Dynamic Styles.
Enter-Leave States
When animating, eg. modals that approach can be tricky. When dismissing an overlay, it is removed from the DOM instantaneously (when using v-if or v-show). That means any animations can’t be applied anymore.
Vue fixes this by adding utility classes.
Element not mounted -> Element mounted
*-enter-from *-leave-from
*-enter-to *-leave-to
*-enter-active *-leave-active
Example
Animating the appearing:
Animating the exiting:
Custom names
On the HTML element, you can give a name:
That gives it its own prefix: