Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery finish() method

jQuery finish() method

jQuery effects methods jQuery effects methods

Example

Finish the currently running animation:

$

(

"

#complete

"

)

.

click

(

function

(

)

{

$

(

"

div

"

)

.

finish

(

)

;

}

)

;

Try it »


Definition and Usage

The finish() method stops the currently running animation, removes all queued animations, and completes all animations for the selected elements.

This method is similar to the .stop(true,true) method, except that finish() also causes the CSS properties of all queued animations to stop.


Syntax

$(

selector

).finish(

queueName

)

Parameters Description
queueName Optional. Specifies the name of the queue whose animations are to be stopped.

jQuery effects methods jQuery effects methods