Skip to content

Instantly share code, notes, and snippets.

/gist:2997811

Created Jun 26, 2012
Embed
What would you like to do?
if ($('.animated').length) {
setInterval(function () {
$('.animated').each(function () {
var current = $(this).find('.active').removeClass('active');
next = current.next().length ? current.next() : $(this).children().eq(0);
next.addClass('active');
});
}, 2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment