npm.io
2.0.5 • Published 2 years ago

@types/scroll-to-element

Licence
MIT
Version
2.0.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by .