第一步:
npm install animate.css --save
第二步:打开main.js
import animate from 'animate.css'Vue.use(animate)
第三步:
<transition:duration="1000"mode="out-in"appearenter-active-class="animated fadeIn"leave-active-class="animated fadeOut"appear-active-class="animated zoomInDown"><router-view /></transition>
完成这三步之后,点击页面的每一个路由都会有动画效果了