visibility-callback
v1.0.0
Published
DOM Element visibility callback
Downloads
3
Readme
visibility-callback
Run callback when user scroll to specific element
Install
$ npm install --save visibility-callback
Usage
const callback = () => {
// doSomething
};
addVisibilityCallback({
element: domElement,
callback: callback,
throttle: 0.5
}