CSSPerspective: CSSPerspective() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The CSSPerspective() constructor creates
a new CSSPerspective object representing the perspective() value of
the individual transform property in CSS.
Syntax
js
new CSSPerspective(length)
Parameters
length-
A value for the distance from z=0 of the
CSSPerspectiveobject to be constructed. This must be a<length>.
Exceptions
Examples
To do
Specifications
| Specification |
|---|
| CSS Typed OM Level 1 # dom-cssperspective-cssperspective |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSPerspective() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.