0.1.0 • Published 6 years ago

page-scrolling v0.1.0

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

Scroll-bumps

Demo

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();
});

Options

speed

easing

offset

License

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