Answer the question
In order to leave comments, you need to log in
Why doesn't dynamic transiton duration enter work?
Vue 3
I want to add the ability to control the route change animation
In routes.js I added the transition config
{
...,
meta: {
transition: {
name: 'transition name',
mode: 'out-in',
duration: {
enter: 1000,
leave: 2000
}
}
}
<router-view v-slot="{ Component, route }">
<transition v-bind="route.meta.transition">
<component :is="Component" />
</transition>
</router-view>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question