Skip to content

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.

Notifications You must be signed in to change notification settings

servibilis/button-up-down

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published