1.html界面
<transition name="slide"> <router-view></router-view> </transition>
2.css
.slide-enter-active, .slide-leave-active { transition: opacity .8s; } .slide-enter, .slide-leave-to /* .fade-leave-active below version 2.1.8 */ { opacity: 0; }
2024-04-06 20:53:32
1.html界面
<transition name="slide"> <router-view></router-view> </transition>
2.css
.slide-enter-active, .slide-leave-active { transition: opacity .8s; } .slide-enter, .slide-leave-to /* .fade-leave-active below version 2.1.8 */ { opacity: 0; }
下一篇:长页面滚屏动画