mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
// Type definitions for motion-scroll 1.0
|
|
// Project: https://github.com/ninjabonsai/motion-scroll#readme
|
|
// Definitions by: Richard Rogers <https://github.com/ninjabonsai>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export as namespace MotionScroll;
|
|
|
|
export function scroll(config: {
|
|
element?: HTMLElement;
|
|
axis?: "x" | "y";
|
|
scrollTo?: number;
|
|
speed?: number;
|
|
easing?: () => void;
|
|
callBack?: () => void;
|
|
delay?: number;
|
|
force?: boolean;
|
|
minScrollTime?: number;
|
|
maxScrollTime?: number;
|
|
}): void;
|