To use animate.css in your website, simply drop the stylesheet into your document’s <head> Code
, and add the class animated
to an element, along with any of the animation names. That’s it! You’ve got a CSS animated element. Super!
<head>
<link rel="stylesheet" href="animate.min.css">
</head>
You can do a whole bunch of other stuff with animate.css when you combine it with jQuery or add your own CSS rules. Dynamically add animations using jQuery with ease:
$('#yourElement').addClass('animated bounceOutLeft');
You can also detect when an animation ends:
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething());
You can change the duration of your animations, add a delay or change the number of times that it plays:
#yourElement
-vendor-animation-duration: 3s;
-vendor-animation-delay: 2s;
-vendor-animation-iteration-count: infinite;
Note: be sure to replace “vendor” in the CSS with the applicable vendor prefixes (webkit, moz, etc)
How To Use Animate.Css In Your WebSite
No comments:
Post a Comment