transition过渡动画

过渡动画必须写在<transition></transition>标签内,配合其他标签使用。

例子:

<transition name="fade" mode="in-out">
        <router-view></router-view>
</transition>
 
其中<transition name="xx" >
.xx-enter:开始进入
.xx-enter-active:逐渐进入的过程
.xx-leave:开始离开
.xx-leave-active:逐渐离开的过程

引用:https://segmentfault.com/q/1010000007738500

猜你喜欢

转载自www.cnblogs.com/wanlibingfeng/p/9647729.html