Currently animating (:animated)

Syntax and Description

$(':animated')

select all elements that are in the progress of an animation at the time the selector is run.

Examples

  • $(':animated') selects all elements that are currently animating
  • $('.myclass:animated') selects all elements with the class myclass that are currently animating