Menu Samaritan's Purse

TRANSFORM-ORIGIN

The transform-origin property specifies the origin for the transform.

SYNTAX

CSS

transform-origin: value;

JS

object.style.transformOrigin = "value";

VALUES

<'transform-origin'> = [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] <length>? | [[ center | left | right ] && [ center | top | bottom ]] <length>?
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 (%).

<length>

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

INITIAL

50% 50%

EXAMPLES

BOTTOM

CENTER

LEFT

LENGTH

PERCENTAGE

RIGHT

TOP

JS

INTERNAL

backface-visibility

perspective

perspective-origin

rotate

scale

transform

transform-box

transform-style

translate

EXTERNAL

World Wide Web Consortium (W3C)