今天学习vue动画使用,觉得下载animate.css下载然后引用比较方便,以下给出教程。
第一步:
下载animate.css。网址:(http://www.haorooms.com/uploads/example/Animatecss/)
第二步:
在需要使用动画的标签外包上标签,
并在 中写上
name="fade" enter-active-class="animated 动画名字" <!-- 这是前动画 --> leave-active-class="animated 动画名字" <!-- 这是后动画 -->