GsapInertiaOptions: {
    duration?: {
        max: number;
        min: number;
    };
    end?: number | number[] | ((naturalLandingValue: number) => number);
    resistance?: number;
    velocityScale?: number;
}

Defines options for the inertia plugin.

Type declaration

  • Optionalduration?: {
        max: number;
        min: number;
    }

    Min and max time in seconds for inertia duration. Default: min: 0; max: 3

    • max: number
    • min: number
  • Optionalend?: number | number[] | ((naturalLandingValue: number) => number)

    Specifies hard ending points that are snapped to in pixels.

  • Optionalresistance?: number

    The amount of resistance per second (think of it like how much friction is applied); Default: 1000

  • OptionalvelocityScale?: number

    Scales velocity tracking values generated from dragging; Default: 1