2.0.5 • Published 7 months ago
@types/scroll-to-element v2.0.5
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.
index.d.ts
// Type definitions for scroll-to-element 2.0
// Project: https://github.com/willhoag/scroll-to-element
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 23 Dec 2021 23:35:48 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by DefinitelyTyped.