Easy Tutorial
❮ Jquery Ref Selectors Ajax Load ❯

jQuery jQuery.speed Method

jQuery Miscellaneous Methods


Definition and Usage

The $.speed() function creates an object with a set of properties to define custom animations.

Note: 1. The $.speed() method provides a way to define properties such as duration, easing, and queue for custom animations. Using it, you don't have to implement the logic involved in default values and optional parameters yourself.


Syntax

Method One

Parameter Description
duration (default: 400) Number / String <br> A string or number determining how long the animation will run. (Predefined speed strings "slow", "normal", or "fast", or a millisecond value indicating the duration of the animation, e.g., 1000)
settings PlainObject <br> easing String <br> A string indicating which easing function to use for the transition. <br> complete Function() <br> A function to call once the animation is complete.

Method Two

Parameter Description
duration (default: 400) Number / String <br> A string or number determining how long the animation will run. (Predefined speed strings "slow", "normal", or "fast", or a millisecond value indicating the duration of the animation, e.g., 1000)
easing String <br> A string indicating which easing function to use for the transition.
complete Function() <br> A function to call once the animation is complete, called once per matched element.

Method Three

Parameter Description
settings PlainObject <br> duration Number / String <br> A string or number determining how long the animation will run. <br> easing String <br> A string indicating which easing function to use for the transition. <br> complete Function() <br> A function to call once the animation is complete.

jQuery Miscellaneous Methods

❮ Jquery Ref Selectors Ajax Load ❯