/* 为对应的路由跳转时设置动画效果 */
 
<transition name="fade">
        <router-view />
    </transition>
 
.fade-enter-active, .fade-leave-avtive {
    transition: opacity 1s
}
.fade-enter, .fade-leave-to {
    opacity: 0
}

相关文章:

  • 2021-12-04
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案