2
$("#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");

image1.animation のコールバック関数の本体内で image2.animation がいつ終了したかを確認するにはどうすればよいですか?

4

1 に答える 1

4

:animatedセレクターを使用できます:

if ($('#IMAGE1').is(':animated')) {
    // it's animating...
}

参考文献:

于 2012-10-23T22:27:31.250 に答える