Transformation orgin CSS

div {
  transform: rotate(45deg);
  transform-origin: 20% 40%;
}
Elated Eagle