[jQuery] Re: Canceling an animation

2007-11-02 Thread Yehuda Katz
You could always wrap it up in a plugin like deferred("fadeIn", 500) that exposes a stopDeferred() method and handles both cases. On 11/2/07, Gordon <[EMAIL PROTECTED]> wrote: > > > To abort before the animation starts you'd use slearTimeout. In the > case where the animation has already started

[jQuery] Re: Canceling an animation

2007-11-02 Thread Gordon
To abort before the animation starts you'd use slearTimeout. In the case where the animation has already started you'd use $ (selector).stop () On Nov 2, 12:17 am, "S. Robert James" <[EMAIL PROTECTED]> wrote: > I have an animation that runs after a delay: > > setTimeout(function(){$(".mbox").fad

[jQuery] Re: Canceling an animation

2007-11-01 Thread Yehuda Katz
You can cancel an animation via $().stop Sent from my iPhone On Nov 1, 2007, at 5:17 PM, "S. Robert James" <[EMAIL PROTECTED]> wrote: I have an animation that runs after a delay: setTimeout(function(){$(".mbox").fadeIn('slow');},500); If I need to cancel it, how do I this? I would like