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();
});
jQuery stop()
You can stop an animation or an effect at any time using the jQuery stop() method . This method works...
jquery stop method
Also tagged with one or more of these keywords: jquery, stop method
Designer's Resources →
Tutorials →
Creating a Form in CSS and JQUERYStarted by Salwa, 16 Jul 2014 create form, css, jquery |
|
|
||
Web Design →
Javascript →
JQuery scrollTop()Started by SmartWeb, 12 Mar 2013 jquery, scrolltop |
|
|
||
Web Design →
Javascript →
How to Access iFrame Elements in jQueryStarted by SmartWeb, 16 Aug 2012 access, iframe elements, jquery |
|
|
||
Web Design →
Javascript →
How to Loop through Elements Backwards in jQueryStarted by SmartWeb, 16 Aug 2012 backwards, elements, jquery, loop |
|
|
||
Web Design →
Javascript →
How to delay animation in jQueryStarted by SmartWeb, 16 Aug 2012 animation, delay, jquery |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users