vue项目使用animate.css
1、下载:npm install animate.css --save
2、引用,在全局min.js中引用
import animated from 'animate.css'
Vue.use(animated)
3、就可以正常在页面使用了
举例:
<h1 class="animate__animated animate__bounce">An animated element</h1>
进入animate.css
官网点击右侧可以挑选需要的动画,鼠标滑上会显示如下图中圈出来的图案,可以直接点击复制类名,在需要使用动画的元素添加两个类名一个是animate__animated
必须有,在加上在官网复制的这个类名即可