私は次のようなものを持っています:
$('#test').bind('go', function(event, top, left,w,h) {
$('#test').animate({left: left, top : top, width: w,height: h},1000,function() {
$('#test').animate({left: 0, top :0, width: w,height: h},1000) ;
})
});
$('#test').trigger('go', [150, 200,100,80]);
$('#test').trigger('go', [250, 200,100,80]);
$('#test').trigger('go', [350, 200,100,80]);
ただし、2番目と3番目のトリガーは、最初のトリガーが終了する前に開始されます。前が完了したときに次のmain.triggerを開始したい。
試してみてください:http://jsfiddle.net/9NLrR/6/
ありがとう