All docs
V18.2
24.2
The page you are viewing does not exist in version 24.2.
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

jQuery/JS Common - utils - fx - Methods

This section describes methods used to animate elements.

animate(element, config)

Animates an element.

Parameters:
element:

DOM Node

The element.

The element's animation options.

Return Value:

Promise<void> (jQuery or native)

A Promise that is resolved after animation is completed. It is a native Promise or a jQuery.Promise when you use jQuery.

If you execute element animation before the previous one is completed, the animation is passed to a queue and is executed after the current one finishes.

isAnimating(element)

Checks whether an element is being animated.

Parameters:
element:

DOM Node

The element.

Return Value:

Boolean

true if the element is being animated; otherwise false.

stop(element, jumpToEnd)

Stops an element's animation.

Parameters:
element:

DOM Node

The element.

jumpToEnd:

Boolean

Specifies whether to apply the target animation state or leave the current state.