HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

2D Rotation


Rotating an element will turn it clockwise or counterclockwise. To


rotate an object, use the transform property in combination with the rotate()


method.


The rotate() method accepts one value: the number of degrees to


rotate the object.


transform: rotate(30deg);
Free download pdf