css rotate 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 orgin css
div {
transform: rotate(45deg);
transform-origin: 20% 40%;
}