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