Type Alias GsapInertiaOptions
type 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;
}
Index
Properties
Properties
Optionalduration
duration?: { max: number; min: number }
Min and max time in seconds for inertia duration. Default: min: 0; max: 3
Optionalend
end?: number | number[] | ((naturalLandingValue: number) => number)
Specifies hard ending points that are snapped to in pixels.
Optionalresistance
resistance?: number
The amount of resistance per second (think of it like how much friction is applied); Default: 1000
OptionalvelocityScale
velocityScale?: number
Scales velocity tracking values generated from dragging; Default: 1
Defines options for the inertia plugin.
See
https://gsap.com/docs/v3/Plugins/InertiaPlugin/#config-object