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

 

posted @ 2018-09-14 17:09  万里冰封  阅读(324)  评论(0编辑  收藏  举报