:animated


version 1.2 以降

解説

マッチした要素のうち、アニメーション実行中の要素を返します。

記法

:animated

例1:アニメーション実行中の要素の背景を黄色に設定し、"animated"の文字列を表示します。

$(":animated").css("background-color", "yellow").text("animated");