/ Published in: jQuery

Simple jQuery fadeIn/Out continuous rotator.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function() { // Set first div to show $('.testimonials div:first').show(); // Begin the loop, fade out, find next div, fade that div in, end the process and append back to main div. setInterval(function() { $('.testimonials div:first-child').fadeOut().next('div').fadeIn().end().appendTo('.testimonials'); }, 5000); )};
Comments
