82018-5
强大的CSS3动画库animate.css DEMO演示
button,input,select,textarea{color:inherit;font:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}
.butt,.input{margin:.375rem;padding:.75rem;border-radius:4px;background-color:transparent}
.butt:focus,.input:focus{outline:0}
.butt{padding-right:1.5rem;padding-left:1.5rem;border:2px solid #f35626;color:#f35626;font-weight:700;line-height:1.375;cursor:pointer;-webkit-animation:hue 60s infinite linear}
.input{border:1px solid #c0c8c9;border-radius:4px}
.input--dropdown{background-image:url(../images/ddown.png);background-image:url(../images/ddown.svg?3),none;background-position:right center;background-size:1.5rem 1rem;background-repeat:no-repeat}
form,p{margin-bottom:1.5rem}
.site__header{-webkit-animation:bounceInUp 1s}
.site__title{background-image:-webkit-linear-gradient(92deg,#f35626,#feab3a);color:#f35626;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-animation:hue 60s infinite linear}
.site__content{-webkit-animation:bounceInUp 1s;-webkit-animation-delay:.1s}
.site__content form{-webkit-animation:bounceInUp 1s;-webkit-animation-delay:.1s}
@-webkit-keyframes hue{from{-webkit-filter:hue-rotate(0)}
to{-webkit-filter:hue-rotate(-360deg)}
}
Animate.css
Just-add-water CSS animations
bounce
flash
pulse
rubberBand
shake
swing
tada
wobble
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
flip
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
重试效果
function testAnim(x) {
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
$(this).removeClass();
});
};
$(document).ready(function(){
$('.js--triggerAnimation').click(function(e){
e.preventDefault();
var anim = $('.js--animations').val();
testAnim(anim);
});
$('.js--animations').change(function(){
var anim = $(this).val();
testAnim(anim);
});
});