Utilizor
Contact Us

CSS 2D Transforms

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

CSS 2D Transforms

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

translate()

The translate() method moves an element from its current position.

Original
Translated

rotate()

The rotate() method rotates an element clockwise or counter-clockwise.

Rotated

scale()

The scale() method increases or decreases the size of an element.

Scaled (0.7)

Example

div {
  transform: translate(50px, 100px);
  transform: rotate(20deg);
  transform: scale(2, 3);
}