I have an endless loop slideshow, the result I’m looking for is: blinking image -> few seconds of blank -> next blinking image, …
@marcus-ekwall solution almost works, but the very first slide is shown for a long interval instead of short, then it loops fine. Any idea? Thank you
$(function(){
$('.slideshow img:gt(0)').hide();
setInterval(function(){
var $current = $('.slideshow :first-child').hide();
var $next = $current.next('img');
$current.appendTo('.slideshow');
setTimeout(function(){
$next.show();
}, 1900);
}, 2000);
});
HTML:
<style type='text/css'>
.slideshow { position:relative; }
.slideshow img { position:absolute; left:0; top:0; }
</style>
<body>
<div class="slideshow">
<img src="1.png" />
<img src="2.png" />
<img src="3.png" />
</div>
</body>
jsBin demo