mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
496 B
TypeScript
16 lines
496 B
TypeScript
// Type definitions for scroll-to-element 2.0
|
|
// Project: https://github.com/willhoag/scroll-to-element
|
|
// Definitions by: Kirill Kvashonin <https://github.com/kirillurgant>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface Options {
|
|
offset: number;
|
|
align?: 'top' | 'middle' | 'bottom';
|
|
ease?: string;
|
|
duration?: number;
|
|
}
|
|
|
|
declare function scrollToElement(selector: string | HTMLElement | Element, options?: Options): void;
|
|
|
|
export = scrollToElement;
|