2D Conversion in CSS3

Source: Internet
Author: User

With CSS3 conversion, we are able to move, scale, rotate, lengthen, or stretch elements.

Transformations are an effect that changes the shape, size, and position of an element.

Note: Internet Explorer 10, Firefox, and Opera support the Transform property.

Chrome and Safari need a prefix of-webkit-.

The Transform property has the following four values:

1,translate ()

With the translate (px, px) method, the element moves from its current position, based on the given left (x-coordinate) and top (y-coordinate) positional parameters.

2,rotate ()

The element rotates the given angle clockwise through the rotate (deg) method. Negative values are allowed, and the elements rotate counterclockwise.

3,scale ()

With the scale (N,n) method, the dimension of the element is increased or decreased, based on the given width (X-axis) and height (Y-axis) parameters. The element size is enlarged and shrunk.

4,skew ()

Through the skew (deg, deg) method, the element flips the given angle, based on the given horizontal line (X axis) and vertical (Y-axis) parameters.

2D Conversion 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.