Menu Riverview Church

PERSPECTIVE-ORIGIN

The perspective-origin property establishes the origin for the perspective property.

SYNTAX

CSS

perspective-origin: value;

JS

object.style.perspectiveOrigin = "value";

VALUES

<'perspective-origin'> = <position>
<position> = [ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]
left

Left.

center

Center.

right

Right.

top

Top.

bottom

Bottom.

<length-percentage> = [ <length> | <percentage> ]
<length>

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

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

INITIAL

50% 50%

EXAMPLES

BOTTOM

CENTER

LEFT

LENGTH

PERCENTAGE

RIGHT

TOP

JS

INTERNAL

backface-visibility

perspective

rotate

scale

transform

transform-box

transform-origin

transform-style

translate

EXTERNAL

World Wide Web Consortium (W3C)