Skip to content Skip to sidebar Skip to footer

How To Re-run Animation After Animation Finishes (jquery)?

What I am trying to do is to animate an image across the page, continuously, while being draggable at the same time. Currently, it moves across, is draggable, and goes back to the

Solution 1:

I don't know why are you using .stop() but I guess this should work-

functionanimateCloud() {
    $(cloud).animate({
        left: '300px'
    }, 25000, function() {
        $(this).css({ left: '0' });
         animateCloud();
    });

}

I hope this is what you want.

Post a Comment for "How To Re-run Animation After Animation Finishes (jquery)?"