Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Repeat or loop the jquery animation (help) Re: Repeat or loop the jquery animation (help)

#138295
CrocoDillon
Participant

Seems like you already figured it out with delay :) This might help if you want to delay resetting width to 0 as well:

function reslide(){
$(‘.slide-right’).delay(1000).queue(function(){
$(this).css({width:’0′}).dequeue();
}).animate({width:’100%’}, 400, reslide);
}