Arunkumar
Arunkumar

Reputation: 194

How To detect the show animation[jquery] is currently running

i using show in jquery with specific time

$('#main_div').hide();
$('#main_div').show(3000);

is their any jquery selector to detect show animation is currntly running. is it possible???

Upvotes: 0

Views: 145

Answers (2)

Sudhir Bastakoti
Sudhir Bastakoti

Reputation: 100175

you could check:

if( $("#main_div").is(':animated') ) {
   ...
}

See: animated

Upvotes: 1

otakustay
otakustay

Reputation: 12395

You can detect whether an animation is running by :animated selector, but it's not possible to decide which animation is running

Upvotes: 1

Related Questions