// queue管理するための要素 var q = $('<div>'); function writeQ(){ $('#log').text( q.queue().length ); } function anim(){ var $hoge = $('<div>').css({ position: 'absolute', left: Math.random()*400|0 + 'px', top: Math.random()*400|0 + 'px', width: 10+Math.random()*40|0 + 'px', height: 10+Math.random()*40|0 + 'px', backgroundColor: "#" + Math.random().toString(16).slice(2,8) }).appendTo($('body')); var props
![jQuery animation queueを使った連続アニメーション - jsdo.it - Share JavaScript, HTML5 and CSS](https://cdn-ak-scissors.b.st-hatena.com/image/square/f6604bfb5ce070e3525a17488e6e0defd6304e02/height=288;version=1;width=512/http%3A%2F%2Fjsdo-static-contents.s3.amazonaws.com%2Fimages%2Fcapture%2F3%2Fe%2Fc%2F3ec3.jpg%3Ft%3D1382021986)