Menu Home

perspective

osbo.com | CSS | Properties | perspective

The perspective CSS property specifies the perspective of the element.

Syntax

CSS

perspective: value;

JS

object.style.perspective = "value";

Values

<'perspective'> = none | <length [0,∞]>
none

No perspective transform is applied.

<length>

Specifies the length using a number followed by a unit of measurement.

Initial

none

Examples

length

none

JS

Internal

backface-visibility

perspective-origin

rotate

scale

transform

transform-box

transform-origin

transform-style

translate

External

World Wide Web Consortium (W3C)