The difference and connection between translate, transform and translation in CSS3

Source: Internet
Author: User

Translate: A method of moving, transform

with 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: Deformation. ChangeCSS3 mainly includes rotation: rotate () Rotates the given angle clockwise, allowing a negative value of rotate (30deg)twist: Skew () element flips the given angle, according to the given horizontal line (X-axis) and vertical (Y-axis) Parameters: Skew (30deg,20deg)Scaling: Scale () zooms in or out, depending on the given width (X-axis) and height (Y-axis) Parameters: Scales (2,4)move: Translate () translation, passing in x, Y values, representing the distance between the x-axis and the y-axisall 2D conversion methods are grouped together: matrix () rotate, scale, move, and tilt elementsMatrix (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, etc.transition:property duration timing-function delay;Property:css Properties, for example: width height is none when all movement is stopped, can be transform           Duration: DurationTiming-function:ease, etc.delay: DelayedNote: All animations when property is allFor example: transition:width 2s ease 0s;

The difference and connection between translate, transform and translation in CSS3

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.