# tiny-scrollto

> Animate DOM scrolling. 0.4kB, zero dependencies.

Latest version **1.0.6** (published 2023-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install tiny-scrollto
pnpm add tiny-scrollto
yarn add tiny-scrollto
bun add tiny-scrollto
```

## 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.6 |
| Published | 2023-10-30 |
| First published | 2021-09-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Hallstein |
| Maintainers | bhallstein |

## Links

- npm: https://www.npmjs.com/package/tiny-scrollto
- Repository: https://github.com/bhallstein/tiny-scrollto
- Homepage: https://github.com/bhallstein/tiny-scrollto#readme
- Issues: https://github.com/bhallstein/tiny-scrollto/issues
- npm.io page: https://npm.io/package/tiny-scrollto

## Recent versions

- 1.0.6 (latest) — 2023-10-30
- 1.0.5 — 2023-08-24
- 1.0.4 — 2023-08-24
- 1.0.3 — 2022-01-06
- 1.0.2 — 2021-09-29
- 1.0.1 — 2021-09-29
- 1.0.0 — 2021-09-29

## README

# tiny-scrollto

Animate DOM scrolling. 0.4kB, zero dependencies.

**Install:**

```js
npm install -S tiny-scrollto
```

**Use:**

```js
import {scroll} from 'tiny-scrollto'

scroll(500)
scroll('end')  // Scroll to end of document
```

`tiny-scrollto` also exports a `clamp` utility function:

```js
import {clamp} from 'tiny-scrollto'

const x = clamp(x, 0, 1)  // Clamp x to the range 0-1
```

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