$("#IMAGE1").animate({"left": "+=1050px", queue: false}, "slow", function()
{
// Want this to happen when the image2 animation is completed as well.
$("#IMAGE1").css('left', $('#IMAGE2').position().left);
}
$("#IMAGE2").animate({"left": "+=1050px", queue: false}, "slow");
How do I check when the image2.animation is finished inside the body of the callback function of image1.animation?
You can use the
:animatedselector:References:
:animatedselector.