guide to css transform origin code example
Example 1: css transform origin
/* Syntax */
transform-origin: y-axis x-axis z-axis|initial|inherit;
/* Example */
transform-origin: center right;
/* Possible Values
x-axis - left, center, right, (length), (%)
y-axis - top, center, bottom, (length), (%)
z-axis - (length)
*/
Example 2: transform origin
Awesome Demo of transform-origin:
https://www.w3schools.com/cssref/trycss3_transform-origin_inuse.htm