0 points

Simple Auto-Playing Slideshow


dashboard

Tue Jun 23 2020 09:27:41 GMT+0000 (UTC)

Posted by @Amna #javascript #jquery

$("#slideshow > div:gt(0)").hide();

setInterval(function() { 
  $('#slideshow > div:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#slideshow');
},  3000);
content_copy Copy

Run after DOM is ready.

https://css-tricks.com/snippets/jquery/simple-auto-playing-slideshow/