Something like $(element).animateStop() to stop all animations currently running on that element or $(element).animateStop('height') to stop only height animation, or something similar..

Yehuda Katz wrote:
Not currently. What syntax would you think would be appropriate?

-- Yehuda

On 1/2/07, *spinnach* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    no, i mean stopping an animation that's already started..

    Michael E. Carluen wrote:

    Do you mean pause? If so you can pause an execution by using:

    setTimeout(function() {

    $("#div").fadeTo('slow',0.0);

    }, 5000 );

    ------------------------------------------------------------------------

    *From:* [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    [mailto:[EMAIL PROTECTED] *On Behalf Of *spinnach
    *Sent:* Tuesday, January 02, 2007 1:52 PM
    *To:* jQuery Discussion.
    *Subject:* [jQuery] Stopping animation..

    Is there any way to stop an animation or fade? How to stop
    $('#div').fadeTo(500,0) on click or something?

    ------------------------------------------------------------------------

    _______________________________________________
    jQuery mailing list
    [email protected] <mailto:[email protected]>
    http://jquery.com/discuss/


    _______________________________________________
    jQuery mailing list
    [email protected] <mailto:[email protected]>
    http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to