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