Animate.css官网:https://animate.styleanimate.style
Animate.css GitHub地址:https://github.com/daneden/animate.cssgithub.com
第一步:安装animate.css NPM包:
在命令行中执行:
npm install animate.css --save
注意:Vue 官网引用的是 animate.css 3.5,不能引用 animate.css 最新版本 (例如:4.1.0),推荐使用animate.css 3.7.2
npm install animate.css@3.7.2 --save
第二步:引入及使用:
在main.js中引入:
import
在vue页面中使用:
<!-- template -->
animate中的动画效果:
fade