The freeCodeCamp Forum
Set translateX value in javascript
JavaScript
camperextraordinaire
May 4, 2019, 9:58pm
2
getimage[0].style.transform = "translateX(0," + val + ")";
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Translete an element along the X-axis
Code Feedback
6
98
August 16, 2025
What is carouselSlide.style.transform = 'translateX(' + (-size * counter) + 'px)'; doing in this code also what exactly is the value of px?
2
1908
June 1, 2021
CSS transform - translate
JavaScript
7
3414
June 1, 2021
Settting value of a variable in a function
JavaScript
2
367
February 2, 2021
Push the capsules down
HTML-CSS
6
322
July 26, 2021