CSS3 2D Conversion

Source: Internet
Author: User

Div
{
Transform:rotate (30DEG);
-ms-transform:rotate (30DEG); /* IE 9 */
-webkit-transform:rotate (30DEG); /* Safari and Chrome */
}

The 1.translate () method moves from the current element position according to the parameters given at the left (x-axis) and top (Y-axis) positions.

Transform:translate (50px,100px);

The 2.rotate () method rotates the element clockwise in a given degree. Negative values are allowed so that the elements are rotated counterclockwise.

Transform:rotate (30DEG);

The 3.scale () method, which increases or decreases the size of the element, depends on the width (x-axis) and height (y-axis) of the parameter

Transform:scale (2,4); The transition width is twice times the original size, and its original size is 4 times times the height.

4.skew () method, which is given an angle based on the transverse (x-axis) and vertical (Y-axis) line parameters

Transform:skew (30DEG,20DEG);

The 5.matrix () method and the 2D transform method are combined into one.

The matrix method has six parameters, including rotation, zoom, move (pan), and tilt.

CSS3 2D Conversion

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.