transform-origin - CSS: Cascading Style Sheets | MDN
The transform-origin CSS property sets the origin for an element's transformations. The transform origin is the point around which a transformation is applied. For example, the transform origin of the function is the center of rotation. In effect, this property wraps a pair of translations around the element's other transformations.
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin