CSSPerspective
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("CSS Typed Object Model API")}} {{AvailableInWorkers}}
The **CSSPerspective** interface of the CSS Typed Object Model API represents the {{cssxref("transform-function/perspective", "perspective()")}} value of the individual {{CSSXRef('transform')}} property in CSS.
{{InheritanceDiagram}}
Constructor
- {{domxref("CSSPerspective.CSSPerspective", "CSSPerspective()")}}
- : Creates a new
CSSPerspectiveobject.
Instance properties
_Also inherits properties from its parent interface, {{DOMxRef("CSSTransformComponent")}}._
- {{domxref('CSSPerspective.length','length')}}
- : Returns or sets the distance from z=0.
Instance methods
_Also inherits methods from its parent interface, {{DOMxRef("CSSTransformComponent")}}._
Examples
To do
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}