CSS Typed Object Model API
The CSSPerspective() constructor creates a new CSSPerspective object representing the transform-function/perspective value of the individual transform property in CSS.
Syntax
new CSSPerspective(length)
Parameters
- CSSPerspective.length
- : A value for the distance from z=0 of the CSSPerspective object to be constructed. This must be a length.
Exceptions
- TypeError
- : Raised if the value of
CSSPerspective.lengthexists but is not a length.
- : Raised if the value of
Examples
To do
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
