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