I'm following this image from vue docs
my html
<transition name="fade">
<router-view/>
</transition>
and css
.fade-enter-active, .fade-leave-active {
transition: opacity 2s;
}
.fade-enter, .fade-leave-to {
opacity: 0;
}
.fade-enter-to, .fade-leave {
opacity: 1;
}
it fade out correctly but instantly pop in instead of fade-in. Why?
I've created demo repository with just 2 components, steps to reproduce:
- git clone https://github.com/BorysTyminski/vue-transition-issue.git
- cd vue-transition-issue
- npm install
- npm run dev
And demo codesanbox: https://codesandbox.io/embed/vue-template-4e4oy

transition-duration? Can you provide a minimal reproducible example? - tao