/button-up-down

The button scrolls first to H1 (if it is not, then it scrolls to the height of the screen), then it works like a scroll up.

Primary LanguageHTML

Button scroll up/down

First to H1 (if it is not, then it scrolls to the height of the screen), then up.

Demo (example)

Here's the demo.

Dependencies

Third-party libraries are not needed.

Install

Get the latest release from the releases page.

Usage

Before your closing </body> tag add:

<script src="js/button-up-down.js"></script>