MDN self-hosted library · e01.org

CSSPerspective

CSS Typed Object Model API

no runnable cells web-api-interface upstream source

CSS Typed Object Model API

The CSSPerspective interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.

Constructor

  • CSSPerspective()
  • : Creates a new CSSPerspective object.

Instance properties

Also inherits properties from its parent interface, CSSTransformComponent.

  • length
  • : Returns or sets the distance from z=0.

Instance methods

Also inherits methods from its parent interface, CSSTransformComponent.

Examples

To do

Specifications

Browser compatibility