@types/scroll-to-element
Version:
TypeScript definitions for scroll-to-element
30 lines (22 loc) • 885 B
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scroll-to-element/index.d.ts)
````ts
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 .