Set translateX value in javascript

getimage[0].style.transform = "translateX(0," + val + ")";
1 Like