CSS3 Transform Deformation

Source: Internet
Author: User

The Transform property applies a 2D or 3D conversion to an element. This property allows us to rotate, scale, move, or skew elements.

W3scholl

Http://www.w3school.com.cn/cssref/pr_transform.asp

Browser support
Transform:none|transform-functions;
Div{transform:rotate (7deg);-ms-transform:rotate (7deg);     /* IE 9 */-moz-transform:rotate (7deg);     /* Firefox */-webkit-transform:rotate (7deg); /* Safari and Chrome */-o-transform:rotate (7deg);     /* Opera */}

Internet Explorer 10, Firefox, and Opera support transform properties.

Internet Explorer 9 supports an alternative-ms-transform attribute (only for 2D conversions).

Safari and Chrome support alternative-webkit-transform attributes (2D conversion).

Opera only supports 2D conversions.

Property List
value Description Test
None The definition does not convert. Test
Matrix (n,n,n,n,n,n) Defines a 2D conversion, using a matrix of six values. Test
Matrix3D (n,n,N,n,n,n,n , N, n,n,n,n,n,n,N,n) Defines a 3D conversion, using a 4x4 matrix of 16 values.
Translate (x,y) Defines a 2D transformation. Test
Translate3d (x,y,z) Defines a 3D transformation.
TranslateX (x) Define the conversion, just with the value of the X-axis. Test
Translatey (y) Define the conversion, just use the Y-axis value. Test
Translatez (z) Defines a 3D conversion, just using the Z-axis value.
Scale (x,y) Defines a 2D scaling transformation. Test
Scale3d (x,y,z) Defines a 3D scaling transformation.
ScaleX (x) Define the zoom transformation by setting the value of the X-axis. Test
ScaleY (y) Define the zoom transformation by setting the value of the Y-axis. Test
Scalez (z) Define a 3D scaling transformation by setting the value of the Z-axis.
Rotate (angle) Defines the 2D rotation, which specifies the angle in the parameter. Test
Rotate3d (x,y,z,angle) Defines the 3D rotation.
Rotatex (angle) Defines the 3D rotation along the X-axis. Test
Rotatey (angle) Defines a 3D rotation along the Y-axis. Test
Rotatez (angle) Defines a 3D rotation along the Z-axis. Test
Skew (x-angle,y-angle) Defines a 2D tilt transition along the X and Y axes. Test
SKEWX (angle) Defines a 2D tilt transition along the X-axis. Test
Skewy (angle) Defines a 2D tilt transition along the Y-axis. Test
Perspective (n) Defines a Perspective view for 3D transformation elements. Test

CSS3 Transform Deformation

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.