Back to Content

CSSPerspective

files/en-us/web/api/cssperspective/index.md

latest747 B
Original Source

{{APIRef("CSS Typed Object Model API")}}

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. It inherits properties and methods from its parent {{domxref('CSSTransformValue')}}.

{{InheritanceDiagram}}

Constructor

  • {{domxref("CSSPerspective.CSSPerspective", "CSSPerspective()")}}
    • : Creates a new CSSPerspective object.

Instance properties

  • {{domxref('CSSPerspective.length','length')}}
    • : Returns or sets the distance from z=0.

Examples

To do

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}