-webkit-transform: rotateX(150deg); /* Safari */
transform: rotateX(150deg);
}
Original image:
(* The examples in the article are all transformed from this image)
Figure Transform
The usual div element.
The div element is rotateX 150deg.
>
RotateY () is used to rotate the element around the Y axis at a specified angle.
#myDiv {
-webkit-transform: rotateY(130deg); /* Safari */
transform: rotateY(130deg);
}
The usual div element.
The div element is rotateY 150deg.
RotateZ () is used to rotate the element around the Z axis at a certain angle.
#myDiv {
-webkit-transform: rotateZ(90deg); /* Safari */
transform: rotateZ(90deg);
}
The usual div element.
The div element is rotateZ 150deg.
To use this attribute fluently, you must practice a lot and capture the coordinates for easy navigation. With transform, you can completely create an interface with many 2D and 3D shapes, making the website more lively and professional. TipsMake.com will explore this issue further in the following lessons. Have you remembered to it!
Previous lesson: 2D Transform in CSS
Next lesson: Transition transition effect in CSS