CSSPerspective: CSSPerspective() constructor
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 | |||||||||||