Question · Vue.js course · Module 13: Transitions & Animations

Transition with RouterView

How do you add a transition animation between pages in Vue Router?

Answer options

  • Wrap <RouterView> in <Transition>
  • Add a transition attribute to <RouterView>
  • Use the v-slot in <RouterView> and wrap Component in <Transition>
  • Use router.beforeEach with an animation

You can check the correct answer by solving this task in the CodeWorlds game.