V
V
VegasChickiChicki2019-07-30 19:14:23
Vue.js
VegasChickiChicki, 2019-07-30 19:14:23

How to set an animation on an element in Nuxt when leaving the page?

The bottom line is that I can’t figure out how to make it so that when leaving the page, the animation of not the entire page, but of a certain element / elements, would take place. I ask for help, explain what I missed and where to look, thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-07-30
@VegasChickiChicki

Look at the transitions between routes here https://ru.nuxtjs.org/guide/routes-transitions/
As an option, create cascading in CSS, that is, set the animation not for the main class, but nest the classes of the necessary elements in it, and already to them apply animation.
I hope I explained clearly))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question