I'm trying to move some elements on the page, and during the time the animation occurs, I want to have "overflow:hidden" applied to an elemnt, and "overflow" back to "auto" once the animation is completed.
I know jQuery has an utility function that determines whether some element is being animated but I can't find it anywhere in the docs
Alternatively, to test if something is not animated, you can simply add a "!":
if you are using
css
animation and assign the animation by using specificclass name
, then you can check it like this:But make sure that you are removing the class namewhich is handling the animation, after the animation is finished!
This code can be used to remove the
class name
after the animation is finished:More info: http://docs.jquery.com/Selectors/animated
Or:
If you want to apply css to animated elements, you can use the
:animated
pseudo selector and do it like this,source : https://learn.jquery.com/using-jquery-core/selecting-elements/