Jquery Easy Fade In / Fade Out Cycle


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(function(){
  2. $('.fadein img:gt(0)').hide();
  3. setInterval(function(){
  4. $('.fadein :first-child').fadeOut()
  5. .next('img').fadeIn()
  6. .end().appendTo('.fadein');},
  7.  
  8. 5000);
  9. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.