Basic conversion and transition of CSS3 animation, and transition of CSS3 animation Conversion

Source: Internet
Author: User

Basic conversion and transition of CSS3 animation, and transition of CSS3 animation Conversion

The theoretical knowledge is not solid enough to reflect your ability to solve problems to a certain extent. Today, we take CSS3 animation as an example to briefly recall some of its basic attributes, which we often use in common applications.

Common animation attributes:

Transform: translate (x, y); // translation. x indicates the moving distance, and y indicates the moving distance;

Transform: scale (x, y); // scale. x indicates the horizontal scaling factor, and y indicates the vertical scaling factor;

Transform: rotate (x); // rotation, x represents the degree of clockwise rotation, such as rotate (10deg );

Transform: skew (x, y); // skew. x \ y represents the tilt animation transition along the x axis and y axis, respectively.

Transition-property lists the CSS attributes of elements that should be transitioned. Excessive attributes include the background, border, and box model attributes:

Transition-duration

Transition-timing-function is used to set the transition speed. one of the following options can be used: transition, linear, transition-in, transition-out, or transition-in-out.

Transition-delay animation delay Time

Abbreviations:

# Selector {transition: transform 0.2 s finished}

Values must be in the following order: transition-property transition-duration transition-function transition-delay

Instance display:

CSS code: In CSS3 conversion and transition graphs, the yellow coil shows the code of the Transition Part. After the animation is set to be completed within 1 s, the conversion effect is displayed in the green box, indicating that when the mouse moves to the h1 title, text will be 2.5 times larger.

All in all, it is important to master the basic knowledge of animation.

Reprinted from: http://www.aspnetjia.com/Cont-79.html

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.