# simple-scrolltop

> A simple crossbrowser getter and setter of scrollTop

Latest version **1.0.1** (published 2015-07-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-scrolltop
pnpm add simple-scrolltop
yarn add simple-scrolltop
bun add simple-scrolltop
```

## 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 | 2015-07-31 |
| First published | 2015-07-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | hellopath |
| Maintainers | hellopath |
| Keywords | scroll, scrollTop, scrolltop, get, set, window, body |

## Links

- npm: https://www.npmjs.com/package/simple-scrolltop
- Repository: https://hellopath@github.com/hellopath/simple-scrollTop
- Homepage: https://github.com/hellopath/simple-scrollTop#readme
- Issues: https://github.com/hellopath/simple-scrollTop/issues
- npm.io page: https://npm.io/package/simple-scrolltop

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-07-31
- 1.0.0 — 2015-07-31

## README

# Simple scrollTop

Hey, do you need a simple scrollTop method working like jquery's scrollTop() ?
This is what you need. A crossbrowsing get and set scrollTop()

# Usage

``` js
import scrolltop from 'simple-scrolltop';

// get
var currentPageScrollPosition = scrolltop();

// set
scrollTop(myNewScrollPosition);
```

# Install

With [npm](https://npmjs.org) do:

```
npm install simple-scrolltop
```

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