Interface JQueryAnimationOptions<T>

Type parameters

  • T

Hierarchy

Indexable

[key: string]: T

Index

Properties

Optional duration

duration: Duration

A string or number determining how long the animation will run.

Optional easing

easing: string

A string indicating which easing function to use for the transition.

Optional queue

queue: boolean | string

A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it.

Optional specialEasing

specialEasing: PlainObject<string>

An object containing one or more of the CSS properties defined by the properties argument and their corresponding easing functions.

Methods

Optional always

  • always(this: Element, animation: Animation<Element>, jumpedToEnd: boolean): void
  • A function to be called when the animation on an element completes or stops without completing (its Promise object is either resolved or rejected).

    Parameters

    • this: Element
    • animation: Animation<Element>
    • jumpedToEnd: boolean

    Returns void

Optional complete

  • complete(this: Element): void
  • A function that is called once the animation on an element is complete.

    Parameters

    • this: Element

    Returns void

Optional done

  • done(this: Element, animation: Animation<Element>, jumpedToEnd: boolean): void
  • A function to be called when the animation on an element completes (its Promise object is resolved).

    Parameters

    • this: Element
    • animation: Animation<Element>
    • jumpedToEnd: boolean

    Returns void

Optional fail

  • fail(this: Element, animation: Animation<Element>, jumpedToEnd: boolean): void
  • A function to be called when the animation on an element fails to complete (its Promise object is rejected).

    Parameters

    • this: Element
    • animation: Animation<Element>
    • jumpedToEnd: boolean

    Returns void

Optional progress

  • progress(this: Element, animation: Animation<Element>, progress: number, remainingMs: number): void
  • A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties.

    Parameters

    • this: Element
    • animation: Animation<Element>
    • progress: number
    • remainingMs: number

    Returns void

Optional start

  • start(this: Element, animation: Animation<Element>): void
  • A function to call when the animation on an element begins.

    Parameters

    • this: Element
    • animation: Animation<Element>

    Returns void

Optional step

  • step(this: Element, now: number, tween: Tween<Element>): void
  • A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set.

    Parameters

    • this: Element
    • now: number
    • tween: Tween<Element>

    Returns void