javascript rotate div code example
Example 1: js transform rotate
object.style.transform="rotate(7deg)";
Example 2: rotate a div using javascript
div.style.tranform = 'rotate(' + angleInDegrees + 'deg);';
object.style.transform="rotate(7deg)";
div.style.tranform = 'rotate(' + angleInDegrees + 'deg);';