返回值:Array<Element(s)> :animated
V1.2 概述
匹配所有正在執行動畫效果的元素
示例
描述:
只有對不在執行動畫效果的元素執行一個動畫特效
HTML 程式碼:
<button id="run">Run</button><div></div>
jQuery 程式碼:
$("#run").click(function(){
$("div:not(:animated)").animate({ left: "+=20" }, 1000);
});