Static GitHub Issues

[2645] How to use js animation when the page is changing

prev: npm generate creates a static page but onclick does not trigger
next: router.afterEach => nextTick doesn't reflect whole application mount

I know it's easy to use css animation when the page is changing. But if is there a way to create animation with js? I want to use a common js animation before every router changes.

Is there anyone give me a solution? Thank you!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2299">#c2299</a>)</em></sub></div>