W3Schools.com

jQuery Effect stop() Method

jQuery Effect Methods jQuery Effect Methods

Example

Stop a running animation:

$("#stop").click(function(){
  $("div").stop();
});

Try it yourself »

Definition and Usage

The stop() method stops the currently running animation for selected elements.

Syntax

$(selector).stop(stopAll,goToEnd)

Parameter Description
stopAll Optional. A Boolean value specifying whether or not to stop the queued animations as well. Default is false
goToEnd Optional. A Boolean value specifying whether or not to complete the current animation immediately. Default is false
 
Examples

Try it Yourself - Examples

Stop queued animations as well
How to stop all queued animations as well.

Complete the current animation immediately
How to complete the current animation immediately (stops all queued animations as well).


jQuery Effect Methods jQuery Effect Methods


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE