transform-origin
The transform-origin property sets the point around which transforms — rotate, scale, skew — are applied. By default it is the element's centre (50% 50%).
Syntax
Accepts up to three values: transform-origin: x y z. Values can be keywords (top, center, bottom, left, right), percentages, or lengths.
Effect on Rotation
Changing the origin to a corner creates a "door hinge" rotation. Moving it outside the element creates an orbiting effect.
Effect on Scale
Scale from a corner anchors that corner while the element grows or shrinks away from it.