vuejs transition to switch between pages
<!-- App.vue -->
<router-view v-slot="{ Component }">
<transition name="slither" mode="in-out">
<component :is="Component"></component>
</transition>
</router-view>
vuejs transition to switch between pages
<!-- App.vue -->
<router-view v-slot="{ Component }">
<transition name="slither" mode="in-out">
<component :is="Component"></component>
</transition>
</router-view>
vue router transition
// then, in the parent component,
// watch the `$route` to determine the transition to use
watch: {
'$route' (to, from) {
const toDepth = to.path.split('/').length
const fromDepth = from.path.split('/').length
this.transitionName = toDepth < fromDepth ? 'slide-right' : 'slide-left'
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us