moveme.js

1.0.2 • Public • Published

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!

Package Sidebar

Install

npm i moveme.js

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • chriscavs