title: Does jQuery ":animated" selector match items that use fadeIn() and fadeOut()?
body: <p>I'm trying to prevent clicks on a list item while an animation is occurring. So at the top of my click handler, I want to do something like this:</p>
  
  <pre><code>if(!$(this).is(:animated)) {
      // handle click code here
  }
  </code></pre>
  
  <p>Note the 'bang' (!) in the if statement above. I haven't tested, but I assume this will work. What I'm not sure of is whether '.is(:animated)' will return true when run against an element that is being animated via fadeIn() and fadeOut(). I know that jQuery has a .animate() function, and I assume :animated certainly works against elements animated using that function, but will it work with those using fadeIn() and fadeOut()? Thanks.</p>
  
  <p><strong>UPDATE:</strong> After some dramatic mis-posts, all seems well, and thanks to the reponders for all the great follow-ups and edits. In the end, I have found that, yes, :animated matches those elements animated using fadeIn() and fadeOut() because the jQuery source uses .animate() to achieve these effects. My final check was as originally posted:</p>
  
  <pre><code>if(!$(this).is(:animated)) {
      // handle click code here
  }
  </code></pre>
  
  <p>..rather than using .not() as has been proposed in some instances (though I believe these will work as currently posted). Thanks again.</p>