1👍
Vue <transition>
doesn’t use animation. It uses transition.
So it’s not animation-duration
, but transition-duration
:
.slide-fade-leave-active {
transition-duration: 0s;
}
If it still doesn’t work, I suggest providing a runnable minimal reproducible example where I could have a look at what you have and test alternatives.
Note: I’m not really sure what takes priority when you use both CSS and the duration directive (:duration="{ leave: n }
) – my guess is the directive takes precedence.
You might want to remove the leave
part from the directive.
👤tao
Source:stackexchange.com