Example

A simple rotate property example:

Laboratory

description & Usage

To rotate an element by the user, we use the rotate property.

Informations

# Description
Default Value none
Inherited no
Animatable yes
Version CSS3
JavaScript syntax object.style.rotate="-120deg"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
rotate

Syntax

Values

Values Description
axis This value is optional.
angle برای تعیین میزان چرخش استفاده می شود و مشخص می کند که درجه و دفعات دور زدن چقدر باشد.
vector angle Three numbers specify the "vector" the element rotates around.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.