Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 2. Selecting Elements with jQuer... > Selecting Elements That Are Currentl...

2.5. Selecting Elements That Are Currently Animating

2.5.1. Problem

You need to select elements based on whether they’re animating.

2.5.2. Solution

jQuery offers a convenient filter for this very purpose. The :animated filter will match only elements that are currently animating:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial