rotate around mid axis css transform position absolute code example
Example: transform orgin css
div {
transform: rotate(45deg);
transform-origin: 20% 40%;
}
div {
transform: rotate(45deg);
transform-origin: 20% 40%;
}