default transform origin code example
Example 1: transform orgin css
div {
transform: rotate(45deg);
transform-origin: 20% 40%;
}
Example 2: transform origin
Awesome Demo of transform-origin:
https://www.w3schools.com/cssref/trycss3_transform-origin_inuse.htm