Animate.css a powerful preset CSS3 animation library

Source: Internet
Author: User

Animate.css is an interesting, cross-browser CSS3 animation library. Well worth the reference in our project.

Usage

1. Animate CSS files are introduced first

< Head >  <  rel= "stylesheet"  href= "Animate.min.css"></  head>

2. Add the specified animation style name to the specified element

<class= "Animated bounceoutleft"></div>

This includes two class names, the first of which is basic, the name of the style that must be added, and any element that you want to implement has to add this. The second one is the specified animation style name.

3. If you want to animate an element dynamically, you can do it with jquery:

$ (' #yourElement '). AddClass (' animated bounceoutleft ');

4. When the animation effect is finished, you can add the event via the following code:

$ (' #yourElement '). One (' Webkitanimationend mozanimationend msanimationend oanimationend animationend ', dosomething);

You can also add these classes to elements via JavaScript or jQuery, for example:

$ (function () {    $ (' #jq22 '). AddClass (' animated Bounce ');});

Some animations end up making elements invisible, such as fading out, swiping to the left, and so on, and you might want to delete the class, for example:

$ (function () {    $ (' #jq22 '). AddClass (' animated bounce ');    SetTimeout (function () {        $ (' #jq22 '). Removeclass (' bounce ');    }, 1000);});

The default settings for ANIMATE.CSS may sometimes not be what we want, so you can reset them, such as:

#jq22 {    animate-duration:2s;    Animation duration    animate-delay:1s;    Animation delay time    animate-iteration-count:2;    Number of animation executions}

Reprinted from: http://www.jq22.com/jquery-info819

Animate.css a powerful preset CSS3 animation library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.