« smarty literal デリミタ 変更 | メイン | PDFをinline インライン表示 »

2014年02月28日

jquery animate 複数 同時

$("#hoge,#poge").animate・・・
ID hoge と poge 同時に


$("#hoge,#poge").animate({opacity: 1},{duration: 1000,easing:"Strshow",queue: false}).animate({width:"200px"},{duration: 2000,easing:"Strshow",queue: false}); 

と後に続ける感じで

queue: falseで同時実行
queue: true でひとつ終わったら次実行


投稿者 muuming : 2014年02月28日 16:33