HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

rotate

Description

The rotate function for CSS specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property.

Syntax

CSS

rotate()

Values

<rotate()> =
    rotate(
        [ <angle> | <zero> ]
    )
<angle>

A number with a unit: deg (360 degrees in a full circle), grad (400 gradians in a full circle), rad (2π radians in a full circle), or turn (1 turn in a full circle).

<zero>

Represents a literal number with the value 0.

Examples

1 · angle

2 · zero

3 · JS