xxxxxxxxxx
element.style.transition = "all 0.5s ease-in-out";
element.style.width = "200px";
xxxxxxxxxx
HTML .
<div class="element"></div>
Javascript .. .
// element variable
let div = document.querySelector(".element")
// div style
div.style.transition = "1.4s ease"
xxxxxxxxxx
const element=document.queryselector("div");
const x=1deg;
const y=1deg;
const z=1deg;
const scl=1rem;//%,px,pt ect
//quick inline style
element.style.transform=`rotatex(${x})rotatey(${y})rotatez(z)translate(0,0)scale(${scl})translate3d(0,0,0)rotate3d(0,1,0,45deg)`
// or element.style=`whatever css; transform:rotatex(${x})rotatey(${y})rotatez(z)translate(0,0)scale(${scl})translate3d(0,0,0)rotate3d(0,1,0,45deg)`