1. 从官网下载
https://raw.github.com/daneden/animate.css/master/animate.css
2. 通过npm安装
$ npm install animate.css
3. 使用在线cdn
https://unpkg.com/animate.css@3.5.2/animate.min.css
想要使用哪种动画,只需要把通用类animated和相应的类添加到元素上就行了
动画效果主要有8类:
1. Attention(晃动效果)
bounce
flash
pulse
rubberBand
shake
headShake
swing
tada
wobble
jello
2. bounce(弹性缓冲效果)
bounceIn
bounceInDown
bounceInLeft
bounceInRight
bounceInUp
bounceOut
bounceOutDown
bounceOutLeft
bounceOutRight
bounceOutUp
3. fade(透明度变化效果)
fadeIn