Style transformStyle Property
Style transformStyle Property
The transformStyle property is used to either set or return how nested elements are rendered in 3D space.
Syntax:-
Its syntax is:- object.style.transformStyle OR object.style.transformStyle = flat | preserve-3d | initial | inherit
Return:-
Its return is:- string having transform-style property of an element
Further Explanation:-
Value | Description |
---|---|
flat | The child elements will NOT preserve their 3D position |
preserve-3d | The child elements will preserve their 3D position |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |