This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
perspective CSS property determines the distance between the z=0 plane and the user in order to give to the 3D-positioned element some perspective. Each 3D element with z>0 becomes larger; each 3D-element with z<0 becomes smaller. The strength of the effect is determined by the value of this property.
Part of the 3D-elements that are behind the user, i.e. that their z-axis coordinate is greater than the value of the
perspective CSS property are not drawn.
The vanishing point is by default placed at the center of the element, but its position can be changed using the
Using this property with a value different than
none creates a new stacking context.
- Initial value
- Applies to transformable elements
- Inherited no
- Computed value the absolute length or
- Animatable yes, as a length
- Canonical order the unique non-ambiguous order defined by the formal grammar
none | <length>
perspective: none perspective: 20px /* <length> values */ perspective: 3.5em perspective: inherited
- Is a keyword indicating that no perspective transform has to be applied.
<length>giving the distance from the user to the z=0 plane. It is used to apply a perspective transform to the element and its content. If it
0or a negative value, no perspective transform is applied.
|CSS Transforms Level 1||Working Draft|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Basic support||12-webkit||10.0 (10)-moz
|Feature||Android||Firefox Mobile (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||3.0-webkit||10.0 (10)-moz