When doing a switching transition on vue2.0, I found that the switching display was normal, but there was a delay when the switching disappeared and there was no transition effect
<transition name='fade'>
<p v-show="isShow" class="detail" >
</p>
</transition>
.detail
position fixed
z-index 100
top 0
left 0
width 100%
height 100%
overflow auto
background rgba(7,17,27,.8)
&.fade-enter-active,&.fade-leave-active
transition opacity 3s
&.fade-enter,&fade-leave-active
opacity 0
大家讲道理2017-05-19 10:35:34
If you can use animate.css, use it. Don’t reinvent the wheel yourself. Directly <transition enter-active-class="animated fadeIn" leave-active-clss="animated fadeOut"></transition>