Home › Forums › Back End › Repeat or loop the jquery animation (help) › Re: Repeat or loop the jquery animation (help)
June 11, 2013 at 5:33 am
#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);
}