cyanBlick();
var intervalID;
intervalID = setInterval(cyanBlick, 7000);
function cyanBlick() {
$(".anim").each( function(indx, element) {
$(element).delay(indx * 1000).fadeIn(250).delay(500).fadeOut(250);
});
}
I have code for animating elements with class .anim. Interval 7sec. But when I leave page in non-active tab, and return after some time, animation don't work in non-active tab. I see chaotic fading elements. Can you tell some solution for this problem?
UPDATE
link with animation