vue中使用animate动画库
时间:2021-04-10 12:54:36
收藏:0
阅读:0
1.安装
npm install animate.css@3.7.2 --save
2.引入
main.js中:
import animated from ‘animate.css‘
Vue.use(animated)
3.使用
vue文件中:
<!-- 直接使用animated中的动画class名,注意:必须使用animated这个class名,否则动画会无效 --> <div class="box animated bounceInDown"></div>
评论(0)