residual-scroll-top
v0.1.0
Published
Residual Scroll
Downloads
2
Readme
residual-scroll-top
Residual Scroll
Install
$ npm install --save residual-scroll-top
Usage
const residualScrollTop = require('residual-scroll-top');
residualScrollTop(node, () => {
console.log('Scroll Top');
});
API
residualScrollTop(node, ?callback)
node
Type: HTMLElement
callback
Type: Function
Called when arriving at top.
License
MIT © akameco