I have a fairly simple slideshow written in jQuery that fades between <div> elements.
In the code below it's set to fade between slides every 5 seconds. Is there a way I can modify this so I can set custom lengths of time to display each slide instead?
Here's a working example on jsfiddle.
My Code
$("#slideshow > div:gt(0)").hide();
setInterval(function() {
$('#slideshow > div:first')
.fadeOut(1000)
.next()
.fadeIn(1000)
setTimeout(function() {$('#slideshow > div:first').appendTo("#slideshow")}, 1000)
}, 5000);