title: Transition using this.router.push with tracking end of animation in VUE CLI
body: <p>I really hope for your help! I'm a beginner, this is my first experience in creating web applications.</p>
  <p>I work with Vue Cli, there is a lottie element that should be animated by click (I did it), then I should go to the “other page” (I did it) But, how do I implement the transition to the page only after the animation finishes? Help! You are welcome! For animation I use Anime.js</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  import { translate } from '../js/animate'
  
  export default {
    methods: {
      go () {
        translate(this.$refs.square)
        this.$router.push('Comprestore')
      }
    }
  }
  &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>/vue
  
  &lt;template&gt;
    &lt;div id="animate" v-on:click = "go" ref="square"&gt;
      &lt;app-lottie&gt;&lt;/app-lottie&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;style scoped&gt;
  &lt;/style&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import anime from 'animejs'
  
  export function translate (element) {
    anime({
      targets: element,
      translateX: 500
    })
  }</code></pre>
  </div>
  </div>
  </p>