transform-style
The transform-style
property specifies if an element’s children are positioned in 3D space or flattened.
Syntax
transform-style: <value>;
The transform-style
property can have one of two values:
preserve-3d
: The children of an element will be positioned in 3D space.flat
: The children of an element will not be positioned in 3D space.
Example 1
Preserving the 3D space of a div
element’s children elements.
div {transform-style: center;}
All contributors
- asiqurr43 total contributions
- christian.dinh2476 total contributions
- Anonymous contributorAnonymous contributor3071 total contributions
- asiqurr
- christian.dinh
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.