Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a jQuery method that determines whether an element is currently being animated or not in the form of a boolean?

Tags:

jquery

The reason I ask is because I want to disable clicking of a show button WHILE the element it is animating is in the process of being animated.

like image 889
nkcmr Avatar asked Nov 27 '25 00:11

nkcmr


1 Answers

Use the :animated selector:

var isAnimated = $('#button').is(':animated');

http://api.jquery.com/animated-selector/

like image 72
Emmett Avatar answered Nov 29 '25 17:11

Emmett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!