0.1.2 • Published 6 years ago

scroll-bumps v0.1.2

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

Scroll-bumps

0.1.0 - current version

Quick start

Install

This package can be installed with:

  • npm: npm install --save scroll-bumps

Put the script at the of your markup right after jQuery:

<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/scroll-bumps/js/scroll-bumps.js"></script>

Usage

added class="scroll-bumps" and data-bumps-id="#about" in your scroll elements:

<button class="scroll-bumps" data-bumps-id="#about">Scroll Up</button>

Call the plugin function and your bumps is ready.

$(document).ready(function(){
    $('.scroll-bumps').scrollBumps();
});

License

The code and the documentation are released under the MIT License.