An open API service indexing awesome lists of open source software.

https://github.com/appleple/scroll-up

This library is for a fixed scroll to top button.
https://github.com/appleple/scroll-up

es6 npm vanilla

Last synced: about 2 months ago
JSON representation

This library is for a fixed scroll to top button.

Awesome Lists containing this project

README

          

# ScrollUp
This library is for a fixed scroll to top button.
It will be hidden when on top and scrolls up the window smoothly when it's clicked.

## Installation

### via npm

```sh
npm install @appleple/scroll-up --save
```

### via yarn

```sh
yarn add @appleple/scroll-up
```

### via cdn

```html

```

## Usage

import the js with babel and Browserify/Webpack

```js
import ScrollUp from '@appleple/scroll-up';
new ScrollUp('.js-scroll-up');
```