how to make smooth and gradual transitions, let’s look at CSS transforms – how to make an element change from one state to another. With the CSS transform property, you can rotate, move, skew, and scale elements.
rotate value, the element rotates clockwise or counterclockwise by a specified number of degrees. A positive value, such as
90deg, rotates the element clockwise, while a negative value, such as
-90deg, rotates it counterclockwise.