@insite/scroll-progress
v0.0.1
Published
ScrollProgress
Downloads
2
Readme
@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
});