Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 rotation property

CSS3 rotation property

Example

Rotate the h1 element by 180 degrees (top to bottom):

h1

{

rotation-point:

50

%

50

%

;

rotation:

180

deg

;

}

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently no browser supports the rotation property.


Property definition and usage

The rotation property rotates a block-level element counterclockwise around a specified point defined by the rotation-point property.

Default value: 0
Inherited: no
Version: CSS3
JavaScript syntax: object.style.rotation="180deg"

Syntax

rotation:

angle

;

Value Description
angle The rotation angle of the element. Possible values: 0deg to 360deg.