/ Published in: jQuery
FadeIn and FadeOut cycle through some images in a div
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.imageWrapper div:not(:first)').hide(); var length = $('.stores .imageWrapper div').length; animateLogo(); function animateLogo() { index = (index >= length)? 1 : index+1; $('.imageWrapper div:nth-child('+index+')').delay(2000).fadeIn(1000,animateLogo).delay(2000).fadeOut(1000); }