# smooth-scroll-to

> Smooth scroll to library

Latest version **0.5.1** (published 2023-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install smooth-scroll-to
pnpm add smooth-scroll-to
yarn add smooth-scroll-to
bun add smooth-scroll-to
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2023-08-04 |
| First published | 2016-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Hill |
| Maintainers | hillliu |
| Keywords | scroll, smooth-scroll |

## Links

- npm: https://www.npmjs.com/package/smooth-scroll-to
- Repository: https://github.com/react-atomic/react-atomic-organism
- Homepage: https://github.com/react-atomic/react-atomic-organism/tree/main/packages/lib/smooth-scroll-to
- Issues: https://github.com/react-atomic/react-atomic-organism/issues
- npm.io page: https://npm.io/package/smooth-scroll-to

## Dependencies (4)

- [call-func](https://npm.io/package/call-func.md) *
- [easing-lib](https://npm.io/package/easing-lib.md) *
- [get-scroll-info](https://npm.io/package/get-scroll-info.md) *
- [reshow-constant](https://npm.io/package/reshow-constant.md) *

## Recent versions

- 0.5.1 (latest) — 2023-08-04
- 0.5.0 — 2022-10-11
- 0.4.8 — 2022-08-01
- 0.4.7 — 2022-07-20
- 0.4.6 — 2022-07-18
- 0.4.5 — 2022-07-18
- 0.4.4 — 2022-07-17
- 0.4.3 — 2022-07-02
- 0.4.2 — 2022-07-01
- 0.4.1 — 2022-07-01
- 0.4.0 — 2022-07-01
- 0.3.5 — 2022-03-03
- 0.3.4 — 2022-01-08
- 0.3.3 — 2021-12-13
- 0.3.2 — 2021-12-12
- … 19 more at https://npm.io/package/smooth-scroll-to/versions

## README

Smooth scroll to for ES6
===

## NPM
https://npm.im/smooth-scroll-to

## GIT
https://github.com/react-atomic/react-atomic-organism/tree/master/lib/smooth-scroll-to

## How to use
```

import smoothScrollTo from 'smooth-scroll-to';
smoothScrollTo(100);

```

## Attribute
smoothScrollTo(to, duration, el);
* to: scroll to where
* duration(option, default 900): for how may time 
* el(option, default body): scroll node element

## ScrollToOptions
https://caniuse.com/mdn-api_scrolltooptions_behavior

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