@insite/scroll-progress

0.0.1 • Public • Published

@insite/ScrollProgress.js

  • @param {HTMLElement} post
  • @param {Object} options
    • class: 'progress'
    • topShift: 250
    • bottomShift: 100
    • destination: this.post
    • finishCallback: null

Usage :

new ScrollProgress(body, {
    class: 'progress',
    destination: '#header',
    bottomShift: window.innerHeight,
    finishCallback: false
});

Readme

Keywords

none

Package Sidebar

Install

npm i @insite/scroll-progress

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • yoinsite
  • prudloff
  • d4vm