Here I am with my first post. My issue is that the callback function of my main animate isn’t running one time as it is suppose to, but severeal times (7). I do not understand why.
Thank you in advance for your replies. Cheers. Marc.
$('#wrapper li').click(function(){
//Here I declare my varaiables
$('#wrapper li').slice(startLi,endLi).animate({
"left": '-='+leftDistance},
"fast",function() {
$('.class').animate({
"left": "+=200px"},
"slow");
});
});
You can use
stop()to change that behavior by putting that beforeanimatefunction:Also see: