Hello! I would like some help conducting a way so a picture can switch every 5 seconds to another picture. For example, if I have picture “Arjun” I want it to automatically switch to picture “Verma” every 5 seconds. Can someone please help me? I haven’t really conducted much code, as it was confused me. Thanks!
I think that slideshow should suit your needs perfectly and it requires no code to set it on autoplay.
Changing the Autoplay Setting on Your Slideshow
You can also change slides using the following API and setTimeout().
The same thing can be done for the Image element and its src property.
Hello! Thank you for getting back to me. I do understand the slideshow method you are talking about. I have wanted to do something such as student testimonials, and I want the testimonials to change every 5 seconds to another testimonial without anyone pressing anything. Can someone please help me?
I would like to do the same thing.
I would like to have a picture .png to sit there and just change every 60 seconds to another .png file I have. I don’t want it sitting in a frame or sliding animation, I just want the images to fade in and out slowly.
2+ years with no answer.