Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use transform in Css3

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of how to use transform in Css3, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on how to use transform in Css3. Let's take a look at it.

Transform attribute, the heaviest CSS3 changes. Let the element change its shape in 2D and 3D.

1. 2D deformation

Deg stands for degree (degrees). There can be no fewer units. There are only deg units and no other units.

Rotate (angle) specifies the angle in the parameters

Skew is tilted along the 2D slant of the X and Y axes.

SkewX (angle) is tilted in 2D along the X axis.

SkewY (angle) is tilted in 2D along the Y axis.

Scale (XBI y)

2D scale conversion along the X and Y axes. Greater than 1: zoom in, 0x1: zoom out.

ScaleX (x) sets the value of the X axis to define the scaling transformation.

ScaleY (y) sets the value of the Y axis to define the scaling transformation.

Note:

No deformation: transform:none

A variety of deformations are separated by spaces. Ef:transform:scale (0.5) skew (10degme 20deg) rotate (30deg)

2. 3D deformation

Google launched Chrome36 in 2013, officially announcing that CSS has entered the 3D era.

The 3D transformation of translate3d (XMagneyMagnez) along the X, Y and Z axes.

Translate space movement

TranslateX (x) conversion, just using the value of the X axis.

TranslateY (y) is converted, just with the value of the Y axis.

TranslateZ (z) 3D conversion, just using the value of the Z axis.

Rotate3d rotates in 3D along the X, Y, and Z axes.

Rotate rotation

RotateX (angle) rotates 3D along the X axis.

RotateY (angle) rotates 3D along the Y axis.

RotateZ (angle) rotates 3D along the Z axis.

Perspective (n) defines a perspective view (depth of field) for 3D transformation elements.

This is the end of the article on "how to use transform in Css3". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use transform in Css3". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report