Home>Article>Web Front-end> What is the tilt function in css3

What is the tilt function in css3

青灯夜游
青灯夜游 Original
2022-06-01 20:24:23 2470browse

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.

What is the tilt function in css3

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)

What is the tilt function in css3

(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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn