UNPKG

vevet

Version:

Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.

43 lines (37 loc) 837 B
export interface ISnapWheelProps { /** * Enable or disable mouse wheel events for progress control * @default false */ wheel?: boolean; /** * Speed factor for mouse wheel movements * @default 1 */ wheelSpeed?: number; /** * Wheel axis * @default 'auto' */ wheelAxis?: 'x' | 'y' | 'auto'; /** * If disabled, then slider will be animated only when you stop scrolling the wheel. * @default true */ followWheel?: boolean; /** * Throttle wheel events, value in milliseconds. * Works only if `followWheel` is disabled. * * - `auto` - value based on transition duration * - `number - value in milliseconds * * @default `auto` */ wheelThrottle?: number | 'auto'; /** * Enable snapping on wheel stop * @default true */ stickOnWheelEnd?: boolean; }