vue中使用animate.css

传统做法:

在main.js中引入,使用vue.use( ) 但是打包后会报错。因此只需要引入即可

第一步:安装

npm install animate.css

第二步:引入

在main.js中 

import 'animate.css';

 第三步:使用

注意,在使用时候,不要加animate__前缀了!!!!


你可能感兴趣的:(vue.js,css,javascript)