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 that is placed between the z=0 and the user is enlarged, each 3D-element with z<0 is shrinked. How much deformation is defined 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.
perspective: none or perspective: depth
- Is a keyword indicating that no perspective transform has to be applied.
- Is a
<length>giving the distance from the user to the z=0 plane. It used to apply a perspective transform to the element and its content. If it
0or a negative value, no perspective transform is applied.
| || || |
|CSS 3D Transforms Level 3||This has been merged in another draft. Please update|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Basic support||12||10.0 (10)||10||--||(Yes)|
|Feature||Android||Firefox Mobile (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||3.0||10.0 (10)||?||--||(Yes)|