Pascal Lindelauf Pascal Lindelauf - 9 months ago 74
jQuery Question

Determining if JQuery effects are still executing

For running Cucumber specs with Capybara and Selenium, I need to be able to determine if certain JQuery effects have completed before I can continue with the next step. Is there a generic way to determine if JQuery is still executing effects (e.g. something like

$ == 0

Answer Source

You can check if element is used by some animation plugin/feature via checking :animated selector

according to this:

like this:


more info: How do I find out with jQuery if an element is being animated?