-webkit-transform: rotateX(150deg); /* Safari */
transform: rotateX(150deg);
}
Original image:
3D Transform in CSS Picture 4
(* The examples in the article are all transformed from this image)
Figure Transform
3D Transform in CSS Picture 5
The usual div element.
The div element is rotateX 150deg.
>
3D Transform in CSS Picture 6
RotateY () is used to rotate the element around the Y axis at a specified angle.
#myDiv {
-webkit-transform: rotateY(130deg); /* Safari */
transform: rotateY(130deg);
}
3D Transform in CSS Picture 7
The usual div element.
The div element is rotateY 150deg.
3D Transform in CSS Picture 8
RotateZ () is used to rotate the element around the Z axis at a certain angle.
#myDiv {
-webkit-transform: rotateZ(90deg); /* Safari */
transform: rotateZ(90deg);
}
3D Transform in CSS Picture 9
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