Currently, I am in the process of developing a slideshow using jQuery. My main struggle lies in creating a loop that will timeout the slideshow for a specific duration, say 10 minutes, before it reappears and resumes indefinitely. Unfortunately, my attempts to make this work have been unsuccessful.
$("#slideshow > div:gt(0)").hide();
setInterval(function(){
$('#slideshow > div:first')
.fadeOut(1000)
.next()
.fadeIn(1000)
.end()
.appendTo('#slideshow');
}, 3000);
<link rel="stylesheet" type="text/css" href="assets/css/animations.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="slideshow">
<div>
<img src="https://i.imgur.com/rDI2jF4.png" alt="">
</div>
<div>
<img src="https://i.imgur.com/DS5peX5.png" alt="">
</div>
</div>
Although I have successfully launched the slideshow, I am seeking guidance on where to find resources or information about setting a time limit for the slideshow to pause, and then resume running after the specified interval.