Return to Snippet

Revision: 21393
at December 11, 2009 12:43 by luizlopes


Initial Code
$.fn.slideShow = function(timeOut) {
   var $elem = this;
   this.children(':gt(0)').hide();
   setInterval(function() {
    $elem.children().eq(0).fadeOut().next().fadeIn().end().appendTo($elem);
   }, timeOut || 3000);
  };

  $(function() {
   $('.fadein').slideShow();
  });

Initial URL
http://snook.ca/archives/javascript/simplest-jquery-slideshow#c64387

Initial Description
$('.fadein').slideShow(300);

Initial Title
Simple Slideshow

Initial Tags
javascript, plugin, jquery, images

Initial Language
jQuery