Return to Snippet

Revision: 22184
at January 5, 2010 04:04 by shapeshifta


Initial Code
setInterval(function(){
  var imgs = $$('.fadein img'),
   visible = imgs.findAll(function(img){ return img.visible(); });
  if(visible.length>1) visible.last().fade({ duration: .3 });
    else imgs.last().appear({ duration: .3,
      afterFinish: function(){ imgs.slice(0,imgs.length-1).invoke('show');  } });
}, 3000);

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

Initial Description

                                

Initial Title
Simple Prototype Slideshow

Initial Tags

                                

Initial Language
JavaScript