vue中使用animate.css动画库
1.安装:npm install animate.css --save2.引入及使用://main.js中import animated from 'animate.css'Vue.use(animated)3.在vue文件中使用:<div class="ty"><!-- 直接使用animated中的动画class名,注意:必须使用animated这个class名,否则动画会无效
·
1.安装:
npm install animate.css --save
2.引入及使用:
//main.js中
import animated from 'animate.css'
Vue.use(animated)
3.在vue文件中使用:
<div class="ty">
<!-- 直接使用animated中的动画class名,注意:必须使用animated这个class名,否则动画会无效 -->
<div class="box animated bounceInDown"></div>
</div>
更多推荐
所有评论(0)