transform css with javascript code example Example: css transform in javascript document.getElementById("myDIV").style.transform = "rotate(7deg)";