Basic transitions and transitions for CSS3 animations

Source: Internet
Author: User

Common Animation Properties:

Transform:translate (x,y);/translate, x means to move the distance, y represents the downward moving distance;

Transform:scale (x,y);//zoom, X for horizontal scaling multiples, y for vertical scaling multiples;

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

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

Transition-property lists the CSS properties that elements should transition, and the properties that can be overused include background, border, and box model properties:

Transition-duration Set Transition duration

Transition-timing-function set the speed of the transition, one of the available ease, linear, ease-in, ease-out, or Ease-in-out

Transition-delay Animation delay Time

Abbreviated form:

#selector {transition:transform 0.2s ease}

The order of the values must be in the following order: Transition-property transition-duration transition-function Transition-delay

Example Show:

CSS code: CSS3 Conversion and transition map of the yellow coil out of the transition part of the code, set the 1s to complete the corresponding animation, the green box is the conversion effect, indicating that the mouse moved to the H1 title, the text will be enlarged 2.5 times times.



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.