Installation
npm install --save @types/scroll-to-element
Summary
This package contains type definitions for scroll-to-element (https://github.com/willhoag/scroll-to-element).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scroll-to-element.
interface Options {
offset: number;
align?: "top" | "middle" | "bottom" | undefined;
ease?: string | undefined;
duration?: number | undefined;
}
declare function scrollToElement(selector: string | HTMLElement | Element, options?: Options): void;
export = scrollToElement;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by .