3番目のアニメーションがデキューされると予想されますが、デキューされていないため、その理由がわかりません。ここにはdemoがあります。あなたは、コールバックに渡されるnext
引数を使用する場合は、キューへの対処jQueryキューからのデキューが機能しない
$('#di').animate({left:300},3000,function(){//animation callback
$('#hello').html('1st is done');
}).animate({left:0},3000,function(){//animation callback
$('#hello').html('2nd is done');
}).queue(function(){//queue
$(this).animate({left:300},3000,
function(){//animation callback
$('#hello').html('the inside queue is done');
$(this).dequeue();
})
}).animate({left:0},3000,function(){//animation callback
$('#hello').html('the last queue is done');
});
Omg、コードおなら!正しくインデントしてください。 – elclanrs
質問している内容が分からないので、質問を再度お聞かせください。 – jfriend00
3番目のアニメーションは2番目のアニメーションの後に実行する必要がありますが、アニメーションについてではありません – Amged