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
: 3max: number
min: number
Optional
end?: number | number[] | ((naturalLandingValue: number) => number)Specifies 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.