How can i create an image slider that will change the images automatically at a specific time instead of using the next and prev | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i create an image slider that will change the images automatically at a specific time instead of using the next and prev

creating an image slider that loads automatically

17th Jan 2017, 9:38 AM
Apena Adetayo
Apena Adetayo - avatar
1 Answer
+ 3
Use setInterval(function() { // your code to change images }, 5000). The function will be executed every 5000 miliseconds.
17th Jan 2017, 9:55 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar