CSS Animation styles

Source: Internet
Author: User

Transform: Animate object Properties (available for animations with gradient effects)

One, transition: animation over-effect

Note: The Transition-duration property is always set, otherwise the duration is 0, and the transition effect is not created.

Transition property values and how to use them:

1.TRANSITION-PROPERTY Specifies the name of the CSS property that sets the transition effect.

2.transition-duration time required for excessive animation

3.transition-timing-function Animation's Excessive curve

NOTE: linear: Transition effect for same speed start to end

4.transition-delay when the animation starts

Second, translate: translation effect of animation

Attribute values can be added with coordinates of x Y Z Point

Transform:translatex (50px)//Right translation 50px

Scale: The rotation of the animation

Transform:rotate (9deg)//Rotate 9 degrees

Specific cases

Use transform to set the slow entry of the picture

var obj=documen.getelementbyclassname ("classname") [0];

Obj.setattribute ("Class", Obj.getattribute ("class") + "classname2");







CSS Animation styles

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.