The 3D rotation of css3, is it the element or the coordinate system?

2d rotation seems to be just a rotating element, 3D looks like a rotating coordinate system.

Nov.17,2021

rotation is actually a linear transformation, which can be understood as axis rotation or axis immobility, and point rotation


rotates elements in a certain direction based on a certain point. All concrete or rotational elements, in fact, the rotation in ps is the same.


made a demo

https://codepen.io/xboxyan/pe.

clipboard.png

proper rotation is made here so that all the faces can be seen

pay attention to the transform-origin

selected during the transformation. The transformation of

css3 is essentially a matrix operation, with sequence

.

logically, each transformation is based on the element itself

actually observed on the web page, because it is a 3D transformation, we usually add

to the parent (stage).
{
    transform-style: preserve-3d;
    perspective: 850px; /**/
}

therefore, visually, it is impossible to directly measure the distance from the screen, but can only roughly see that it is closer to the observer

. The angle of

cannot be measured directly, which is related to the angle of the observer. Even if you are perpendicular to the screen, if you look down from the top of the angle, you can still see the div

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b386d1-2c127.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b386d1-2c127.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?