CSS3 translate, transform, transition difference

Source: Internet
Author: User

Translate: Mobile,

A method of transform

               through the Translate () method, the element moves from its current position , based on the given left (x-coordinate) and top (y-coordinate) positional parameters:           usage transform:translate (50px, 100px);               -ms-transform : Translate (50px,100px);               - Webkit-transform:translate (50px,100px);               -o-transform:translate (50px,100px);               -moz-transform:translate (50px,100px);  transform: deformed. Change                   CSS3 mainly includes rotation: rotate () Rotates the given angle clockwise, allowing negative values rotate (30deg)                      Twist: The skew () element flips the given angle, according to the given horizontal line (X axis) and vertical (Y-axis) Parameters: Skew (30deg,20deg)                      Zoom: Scale () zooms in or out, depending on the given width (X Axis) and height (Y axis) Parameters: Scale (2,4)                      move: Translate () panning, passing in X, Y values, representing distances along the X and Y axes                      all 2D conversion methods are grouped together: matrix ()   rotate, scale, Moving and tilting elements                     matrix (Scale.x,,, Scale.y, translate.x, translate.y)          Change the starting position Transform-origin:bottom left;       Integrated use: Transform:30deg 1.5 30deg 20deg 100px 200px; transition: Allows a smooth transition of CSS property values within a certain time interval,              requires an event trigger, such as click, get focus, lose focus, and so on              Transition:property Duration timing-function delay;                    PROPERTY:CSS properties, for example: width height is none when all movement is stopped, can be transform                                duration: Duration                     timing-function: Ease                   etc.   delay: Delay                      Note: All animations            when property is all    Example: Transition:width 2s ease 0s;            http:// Www.w3cplus.com/content/css3-transition

CSS3 translate, transform, transition difference

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.