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