D
D
Darkness2019-05-27 12:06:15
Vue.js
Darkness, 2019-05-27 12:06:15

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

1 answer(s)
D
Darkness, 2019-05-27
@AntonBrock

To solve this problem, you need to add to appear, like this: Because: I have an initial render in progress and I took a closer look at the docks, I would see " If you also want to apply a transition on the initial render of a node, you can add the attribute"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question