CSS3 animate动画库
animate.css 是兼容性良好的CSS3动画类库,可以实现一些简单的CSS3动画效果。
1 引入样式文件
<link rel="stylesheet" href="animate.min.css">
2 在需要动画的元素上添加 animated 样式 ,也可以添加循环次数
<h1 class="animated infinite bounce">Example</h1>
3 添加你需要的动画效果
bounceflashpulserubberBandshakeswingtadawobblejellobounceInbounceInDownbounceInLeftbounceInRightbounceInUpbounceOutbounceOutDownbounceOutLeftbounceOutRightbounceOutUpfadeInfadeInDownfadeInDownBigfadeInLeftfadeInLeftBigfadeInRightfadeInRightBigfadeInUpfadeInUpBigfadeOutfadeOutDownfadeOutDownBigfadeOutLeftfadeOutLeftBigfadeOutRightfadeOutRightBigfadeOutUpfadeOutUpBigflipInXflipInYflipOutXflipOutYlightSpeedInlightSpeedOutrotateInrotateInDownLeftrotateInDownRightrotateInUpLeftrotateInUpRightrotateOutrotateOutDownLeftrotateOutDownRightrotateOutUpLeftrotateOutUpRighthingerollInrollOutzoomInzoomInDownzoomInLeftzoomInRightzoomInUpzoomOutzoomOutDownzoomOutLeftzoomOutRightzoomOutUpslideInDownslideInLeftslideInRightslideInUpslideOutDownslideOutLeftslideOutRightslideOutUp
4 使用注意点
$('#yourElement').addClass('animated bounceOutLeft');
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);
出处 : http://daneden.github.io/animate.css/
每天一点点积累

浙公网安备 33010602011771号