3D
transform-style: flatvstransform-style: preserve-3drefer to link
The transform-style CSS property sets whether children of an element are positioned in the 3D space or are flattened in the plane of the element, in short,
preserve-3d可以立体穿透。![demo]()
Each 3D element with z>0 becomes larger; each 3D-element with z<0 becomes smaller. The strength of the effect is determined by the value of this property. Large values of
perspectivecause a small transformation; small values ofperspectivecause a large transformation, to sum up,perspectivedefines how far the object is away from the user.
how
perspectiveworks
