Based on the lightweight and high-performance CSS3 animation library-

Source: Internet
Author: User
Repaintless.css is a lightweight, high-performance CSS3 animation library. Repaintless.css uses special methods to create element animations without page re-painting, so that it has higher performance than other CSS animation libraries. You can use boweror npmto install repaintless.css ....,. Brief tutorial

Repaintless.css is a lightweight, high-performance CSS3 animation library. Repaintless.css uses special methods to create element animations without page re-painting, so that it has higher performance than other CSS animation libraries.



  Install

You can use boweror npmto install repaintless.css.


$ bower install repaintless$ npm install repaintless     

  

  Usage

Use the css3animation library to import the repaintless.css file to the page.


   

  

  HTML Structure

To make an element animated, you need to add element-animated class to the element. This class must be added, use the second class to specify the animation type you need.


I tremble!

  

By default, the animation duration is 1 second. You can use class short to specify the animation time as 0.5 seconds and long as 2 seconds. You can add infinite class if you need to do an infinite animation.


I am quick!

I am slooow...

I will do that forever to drive you crazy!

  

  Animation type

Repaintless.css all available animation types are as follows. Some animations are continuous animations.

Slide-from-top

Slide-from-bottom

Slide-from-left

Slide-from-right

Slide-from-right-bottom

Slide-from-right-top

Slide-from-left-bottom

Slide-from-left-top

Slide-top-bottom (looped)

Slide-left-right (looped)

Tremble (looped)

Fade-in

Fade-out

Pulsate (looped)

Rotate

Github address for Repaintless.css animation library: https://github.com/szynszyliszys/repaintless


Source: http://www.htmleaf.com/css3/css3donghua/201603073189.html

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.