Sunday, September 8, 2013

Infinite loop in jquery easing

Infinite loop in jquery easing

How can i put infinite loop in these?
for (var i = 0; i < count; i++) {
var distance = titleheight * i;
$('#animate-container').delay(delay).animate({
'top': '-' + distance + 'px'
}, 400, 'easeOutBounce');
}
$('#animate-container').delay(800).animate({
'top': '0px'
}, 500, 'easeOutBounce');
if ($(".home .cover i").length > 0 && $(window).width() > 767) {
$('.home .cover i').delay((count * delay) + (delay * 2)).animate({
'top': $('.cover i').offset().top - 180
}, 500, 'easeOutBounce', function () {
//$('.cover h3').fadeIn(500);
});
//END WINDOW ANIMATION
$(window).trigger('resize');
})

No comments:

Post a Comment