I am trying to put two .animate() in my main animate() callback. Not working? Any suggestions? Thank you in advance. Cheers. Marc.
$('#wrapper li').click(function () {
//Here is set my variables
$('#wrapper li').slice(startLi, endLi).animate({
"left": '-=' + leftDistance
}, "fast", function () {
$('#wrapper li').slice(indexLi + 1, endLi).stop().animate({
"left": "+=225px"
}, "slow", function () {
$('#wrapper li').slice(indexLi + 1, endLi).stop().animate({
"left": "-=225px"
}, "slow");
}
});
}); // Close of $('#wrapper li').click
Here is the code without syntax errors:
It will at least run now.