javascript rotate a div code example Example: rotate a div using javascript div.style.tranform = 'rotate(' + angleInDegrees + 'deg);';