Interface EffectsOptions<TElement>

Type parameters

  • TElement

Hierarchy

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: TElement, animation: Promise<any>, 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: TElement
    • animation: Promise<any>
    • jumpedToEnd: boolean

    Returns void

Optional complete

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

    Parameters

    • this: TElement

    Returns void

Optional done

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

    Parameters

    • this: TElement
    • animation: Promise<any>
    • jumpedToEnd: boolean

    Returns void

Optional fail

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

    Parameters

    • this: TElement
    • animation: Promise<any>
    • jumpedToEnd: boolean

    Returns void

Optional progress

  • progress(this: TElement, animation: Promise<any>, 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: TElement
    • animation: Promise<any>
    • progress: number
    • remainingMs: number

    Returns void

Optional start

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

    Parameters

    • this: TElement
    • animation: Promise<any>

    Returns void

Optional step

  • step(this: TElement, now: number, tween: Tween<TElement>): 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: TElement
    • now: number
    • tween: Tween<TElement>

    Returns void