# @types/scroll-to-element

> TypeScript definitions for scroll-to-element

Latest version **2.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/scroll-to-element
pnpm add @types/scroll-to-element
yarn add @types/scroll-to-element
bun add @types/scroll-to-element
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2023-11-07 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/scroll-to-element
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scroll-to-element
- npm.io page: https://npm.io/package/@types/scroll-to-element

## Recent versions

- 2.0.5 (latest) — 2023-11-07
- 2.0.2 (ts3.8) — 2021-12-24
- 2.0.1 (ts3.6) — 2021-07-06
- 2.0.0 (ts2.0) — 2019-03-21
- 2.0.4 — 2023-10-18
- 2.0.3 — 2023-09-25

## README

# 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 .

---
_Source: https://npm.io/package/@types/scroll-to-element · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
