perspective
Widely availableSince 201597% of users
Gives an element a 3D feel by setting the distance between the viewer and the 'z=0' plane. A smaller number creates a more intense 3D effect.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since September 2015.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- transformable elements
- Animation type
- length
Quick example
.three-d-space {
/* Sets up the depth for children using 3D transforms */
perspective: 800px;
}
.three-d-space .child {
transform: rotateY(45deg);
}Values
noneperspective browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
36+
16+
9+
12+Mobile
36+Android
16+Android
9+iOS