CSS transform-style property

CSS transform-style

CSS transform-style is used to specify whether the children of an element can be positioned in an 3D space or kept flattened in the plane.

Example

Try Yourself

transform-style property values,

  • preserve-3d : It is used to specify that the elements children should be lying in the elements plane.
  • flat : It is used to specify that the elements children should be positioned in the 3D space.