CSS3 uses ANIMATE.CSS to make stunning animation effects

Source: Internet
Author: User

Animate.css is a super CSS3 animation library, it is simple to use, only the corresponding effect of the class added to the page elements, you can flip, slide, rotate and so on the complex and dazzling cross-browser animation effect, it makes the development of this production page animation becomes very simple.


First, introduce the animate CSS file.

<link rel= "stylesheet" href= "Animate.min.css" >

The specified element is then added to the specified animation class style name.


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


This includes two class names, the first one is basic, and the name of the style that must be added, and any elements you want to implement should add this style. The second is the specified animated style name, which is what animation effect you want, and specify the corresponding animation style name. If you want an animation loop, you can add a style: infinite.

ANIMATE.CSS provides a variety of animation effects that can be added directly as a class style, as in the article: the easing animation mentioned in the JQuery easing animation effect extension.

Bounce, Flash, pulse, Rubberband, Shake, 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

If you want to add animated styles to an element dynamically, you can combine jquery to achieve:

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

You can also add an event with the following code after the animation effect finishes:

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

Related Article

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.