Type Alias GsapInertiaOptions
GsapInertiaOptions: {
duration?: { max: number; min: number };
end?: number | number[] | (naturalLandingValue: number) => number;
resistance?: number;
velocityScale?: number;
}
duration?: { max: number; min: number };
end?: number | number[] | (naturalLandingValue: number) => number;
resistance?: number;
velocityScale?: number;
}
Type declaration
Optional
duration?: { max: number; min: number }Min and max time in seconds for inertia duration. Default:
min
: 0;max
: 3Optional
end?: number | number[] | (naturalLandingValue: number) => numberSpecifies hard ending points that are snapped to in pixels.
Optional
resistance?: numberThe amount of resistance per second (think of it like how much friction is applied); Default: 1000
Optional
velocityScale?: numberScales velocity tracking values generated from dragging; Default: 1
Defines options for the inertia plugin.