4.0.0 • Published 5 years ago

@tomidavies/scrollto v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Scrollto

N|Solid

Version Downloads

A lightweight scrollto module that scrolls the user back up to the top of the page or to an element.

Tech

Scrollto uses Javscript and requires HTML and class to initialize.

Installation

Pull down Scrollto module.

$ cd <project directory>/<script directory>
$ npm install @tomidavies/scrollto

Create a HTML button element with class (name it whatever you like).

<button class="scrollto-button">Button text</button>

Example usage:

 new ScrollTo('.scrollto-button');