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