The transform-style property specifies how nested elements are rendered in 3D space relative to their parent.

  • Initial valueflat
  • Applies toTransformable elements
  • InheritedNo
  • MediaVisual
  • Computed valueSame as specified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript syntaxobject.style.transformStyle
Formal syntax: flat | preserve-3d

transform-style: flat;
transform-style: preserve-3d;
  • flatChild elements will not preserve their 3D position before applying a transform.
  • preserve-3dChild elements will preserve their 3D position before applying a transform.
.class {
   transform-style: preserve-3d;
}
?Firefox?Explorer?Chrome?Safari?Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.