Home>Article>Web Front-end> What is the tilt function in css3
There are three tilt functions in css3: 1. skew(), which can be used with the transform attribute to define 2D tilt transformation along the X and Y axes; 2. skewX(), which can be used with the transform attribute. Define the 2D tilt transformation along the X-axis; 3. skewY(), which can define the 2D tilt along the Y-axis.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
There are three skew functions in css3:
skew()
skewX()
skewY()
These three tilt functions are used together with the transform attribute (used as attribute values) to achieve the tilt of the element.
Value | Description |
---|---|
skew(x-axis angle,The y-axis angle) | defines the 2D tilt transformation along the X and Y axes. |
skewX(angle) | Defines the 2D skew transformation along the X-axis. |
skewY(angle) | Defines the 2D skew transformation along the Y axis. |
Example:
Css3 倾斜变换
skew(45deg, 45deg)
skewX(45deg)
skewY(45deg)
(Learning video sharing:css video tutorial,web front end)
The above is the detailed content of What is the tilt function in css3. For more information, please follow other related articles on the PHP Chinese website!