Animate.css 纯CSS动画库
http://my.oschina.net/yangyan/blog/601573
github上的地址是:https://daneden.github.io/animate.css/
Animate.css
Just-add-waterCSSanimation
animate.cssisabunchofcool,fun,andcross-browseranimationsforyoutouseinyourprojects.Greatforemphasis,homepages,sliders,andgeneraljust-add-water-awesomeness.
基本的使用方法
引入css文件到<head>标签中
<head>
<linkrel="stylesheet"href="animate.min.css">
</head>
给你想让执行动画的元素的class添加animated.你还可以添加infinite这个样式让动画无限循环.
最后你给元素添加下面的一个class,就可以实现不同的动画效果:
bounce
flash
pulse
rubberBand
shake
headShake
swing
tada
wobble
jello
bounceIn
bounceInDown
bounceInLeft
bounceInRight
bounceInUp
bounceOut
bounceOutDown
bounceOutLeft
bounceOutRight
bounceOutUp
fadeIn
fadeInDown
fadeInDownBig
fadeInLeft
fadeInLeftBig
fadeInRight
fadeInRightBig
fadeInUp
fadeInUpBig
fadeOut
fadeOutDown
fadeOutDownBig
fadeOutLeft
fadeOutLeftBig
fadeOutRight
fadeOutRightBig
fadeOutUp
fadeOutUpBig
flipInX
flipInY
flipOutX
flipOutY
lightSpeedIn
lightSpeedOut
rotateIn
rotateInDownLeft
rotateInDownRight
rotateInUpLeft
rotateInUpRight
rotateOut
rotateOutDownLeft
rotateOutDownRight
rotateOutUpLeft
rotateOutUpRight
hinge
rollIn
rollOut
zoomIn
zoomInDown
zoomInLeft
zoomInRight
zoomInUp
zoomOut
zoomOutDown
zoomOutLeft
zoomOutRight
zoomOutUp
slideInDown
slideInLeft
slideInRight
slideInUp
slideOutDown
slideOutLeft
slideOutRight
slideOutUp
例子:
<h1class="animatedinfinitebounce">Example</h1>
查看所有的动画效果https://daneden.github.io/animate.css/