The transform-origin CSS property sets the origin for an element's transformations.

The value of the transform-origin can be one or two. The first value represents x-offset, the second value represents y-offset, separated by a space.
The value of x-offset can be length <length>, percentage <x-percentage>, keyword <x-offset-keyword>
length Length value, the unit is px,rem,rpx, etc.
x-percentage Percentage relative to parent ViewWidth.
x-offset-keyword
| Keyword | Value |
|---|---|
| left | 0% |
| center | 50% |
| right | 100% |
The value of y-offset can be length <length>, percentage <y-percentage>, keyword <y-offset-keyword>
length Length value, the unit is px,rem,rpx, etc.
y-percentage Percentage relative to parent ViewHeight.
y-offset-keyword
| Keyword | Value |
|---|---|
| top | 0% |
| center | 50% |
| bottom | 100% |
| Initial value | empty value |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |
x-offset, the second value always means y-offset, please do not write inverse.LCD tables only load in the browser