The CSS rotate() function spins an element either clockwise or counterclockwise in a 2D plane. It is one of many transform functions used in the transform property.
For example, using rotate() we can rotate the hand around the clock:
.seconds-hand {
transform: rotate(var(--deg));
transform-origin: bottom center;












