JS transições

document.getElementById("myId").style.transform += "rotate(90deg)";
document.getElementById("myId").style.transitionDuration = "0.3s";
ayaan