DefinitelyTyped/types/motion-scroll/index.d.ts
2019-05-14 11:00:09 -07:00

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;