Answer the question
In order to leave comments, you need to log in
Where is the error when animating the appearance in vue.js?
Guys, where am I wrong when aminating through transition? When this block (modal) is closed, it works, but when it appears, it doesn't.
At first, this block is hidden, I think that’s why it doesn’t work out, and when it closes, it sees it correctly.
Thanks for the help!
<template>
<transition name="bird_modal">
// тут что-то
</transition>
</template>
.bird_modal-enter-active {
transition: all .2s;
opacity: 1;
}
.bird_modal-leave-to {
opacity: 0;
}
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