CSS transforms allow you to move, rotate, scale, and skew elements.

CSS 2D Transforms Methods

With the CSS transform property you can use the following 2D transformation methods:

The translate() Method

The translate() method moves an element from its current position (according to the parameters given for the X-axis and the Y-axis).

The rotate() Method

The rotate() method rotates an element clockwise or counter-clockwise according to a given degree.

Using negative values will rotate the element counter-clockwise.