Vue使用animate.css


1、在项目所在目录下执行下列命令进行依赖安装:

npm install animate.css --save

 

2、main.js中加入下列代码全局引入animate.css:

import animated from 'animate.css';
Vue.use(animated)

 

3、大致用法,注意class中加上animated:

<div class="animated fadeInUp"></div>

  格式:class="animated XXXX" ,animated后面的值可以从下面网站中获取到:

https://daneden.github.io/animate.css/

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM