2.0.5 • Published 7 months ago

@types/scroll-to-element v2.0.5

Weekly downloads
20,056
License
MIT
Repository
github
Last release
7 months ago

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.

2.0.3

8 months ago

2.0.5

7 months ago

2.0.4

7 months ago

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

5 years ago