+ 1
How can i move slider value from 1 to 100 in a smooth transition like if it is an animation...
gradually move slider from 1 to 100 in a given time source code:https://code.sololearn.com/W5tm6egZjAiZ/?ref=app
6 Réponses
+ 7
+ 3
🤖Web Gig🤖 sorry i deleted the code since you already got the answer !
Anyway i will post it again,
let move=setInterval(()=>{
slider.value=parseFloat(slider.value)+parseFloat(slider.step);
if(slider.value==100){
clearInterval(move);
}
},1);
+ 2
Artem ya bro thanks..
+ 2
Abhay thanks man...
0
Abhay bro ,how can i restart the animation with the restart button i added...
0
🤖Web Gig🤖 few changes and handle restart button (only when animation done)
https://code.sololearn.com/W23WECrOgvKv/?ref=app