# @feizheng/next-scroll-to

> Scroll to api.

Latest version **1.0.1** (published 2020-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/next-scroll-to
pnpm add @feizheng/next-scroll-to
yarn add @feizheng/next-scroll-to
bun add @feizheng/next-scroll-to
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-02-16 |
| First published | 2020-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |

## Links

- npm: https://www.npmjs.com/package/@feizheng/next-scroll-to
- Homepage: https://github.com/afeiship/next-scroll-to
- npm.io page: https://npm.io/package/@feizheng/next-scroll-to

## Dependencies (1)

- [@feizheng/next-js-core2](https://npm.io/package/@feizheng/next-js-core2.md) ^2.4.1

## Recent versions

- 1.0.1 (latest) — 2020-02-16
- 1.0.0 — 2020-01-13

## README

# next-scroll-to
> Scroll to api.

## installation
```bash
npm install -S @feizheng/next-scroll-to
```

## usage
```js
import '@feizheng/next-scroll-to';

// top/bottom/number
nx.scrollTo({ el: document.querySelector('.abc'), to: 'top' });
nx.scrollTo({ el: document.querySelector('.abc'), to: 'bottom' });
nx.scrollTo({ el: document.querySelector('.abc'), to: 1000 });
```

## set `scroll-behavior: smooth;`
> Use css3 smooth-scroller.

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