Рет қаралды 8,368
CSS transform rotate method spins an element into clockwise and counter clockwise.
CSS rotate function accepts value in angle unit. These units may be degrees (deg), radians (rad), gradians (grad), turns (turn).
CSS rotate function spins an element around a fixed point, the point you have defined. The fixed point is known as transform origin.
You can set custom transform origin with the help of transform-origin property.