search

Home  >  Q&A  >  body text

javascript - vue 2.0 transition transition effect is abnormal

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
世界只因有你世界只因有你2744 days ago592

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理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>

    reply
    0
  • Cancelreply