Ronophobia
Ronophobia

Reputation: 349

Disabling 'pulsate'

How do I temporarily disable the 'pulsate' jQuery UI effect on a particular element? Such as this:

$('#player2,#score2').effect("pulsate", { times:5 }, 2000);

Upvotes: 0

Views: 43

Answers (1)

adeneo
adeneo

Reputation: 318312

To stop any animation that uses jQuery's FX queue you use :

.stop( [clearQueue ] [, jumpToEnd ] ).

$('#player2,#score2').stop(true,true);

you will of course have to restart the animation again whenever .. !!

Upvotes: 1

Related Questions