Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


jQuery stop()

jquery stop method

  • Please log in to reply
 

#1 DesGuru

DesGuru

    Senior Member

  • Designer
  • 220 posts

Posted 02 November 2012 - 03:12 PM

You can stop an animation or an effect at any time using the jQuery stop() method . This method works for all jQuery functions effects like custom animation, sliding or fading.
The Syntax for the stop() method is:
$(selector).stop(StopAll,goToEnd);
Both parameters are optional, the first parameter specifies if the animation queue should be cleared. The default for this is false, so if you don’t use this parameter only the active animation will stop. The second parameter ‘goToEnd’ specifies if you want to finish the current animation immediately. The default for this is also false, so be default stop() finishes the current animation.
Ex.
$("#stop").click(function(){
$("#pan").stop();
});





Also tagged with one or more of these keywords: jquery, stop method

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users