Currently facing an issue with delaying the first run of a function. I've developed a basic slideshow that is causing problems due to this delay in the initial run.
My goal is to have the first run wait for 10 seconds and then maintain a 4-second delay between the subsequent images.
Here is the code I am using:
function slideshow() {
$("#slideshow .slide:hidden:first").fadeIn(1000).delay(4000).fadeOut(1000, function() {
$(this).appendTo($(this).parent());
slideshow();
});
}
$(document).ready( function () {
$("#slideshow .slide").hide();
slideshow();
});
I have attempted various solutions but none have been successful so far.
I believe jsfiddle may not be required for resolving this issue, but if you think otherwise, please let me know!
Thank you in advance!