1.0.2 • Published 6 years ago

moveme.js v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

moveMe.js

Smooth scroll, implemented in seconds.

Installation

From your terminal,

npm install moveme.js

Then link the 'moveMe-min.js' script to your main HTML file.

Usage

Simply add a class name to any element on your page, referencing the element you wish to scroll to.

    <button class="moveMe target"></button>

    ...

    <div id="target"></div>

In the example above, the button will scroll your window to the div element.

Additionally, you can specify a faster scroll speed. Simply add an integer after your target.

    <p class="moveMe main-content 3"></p>

    ...

    <div id="main-content"></div>

Demo

Find a simple demo HERE!