After spending a few hours working on this project, I've almost completed it. However, I'm facing an issue with the slideshow functionality. It seems to pause after cycling through all the images. Any suggestions on why this might be happening?
function slideSwitch() {
var $active = $('#slideshow img.active');
if ($active.is(':last')) {
$active.hide().removeClass('active');
$('#slideshow img:first').show().addClass('active');
}else{
$active.hide().removeClass('active').next().show().addClass('active');
}
}
$(function () {
$('#slideshow img').not('.active').hide()
setInterval(slideSwitch, 1000);
});