HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

perspective-origin

Description

The perspective-origin property for CSS 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

1 · bottom

2 · center

3 · left

4 · length

5 · percentage

6 · right

7 · top

8 · JS