Reputation: 194
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
Reputation: 100175
you could check:
if( $("#main_div").is(':animated') ) {
...
}
See: animated
Upvotes: 1
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