dom scroller based on zynga scroller
import DOMScroller from 'zscroller/lib/DOMScroller';
var domScroller = new DOMScroller(contentNode, options);
http://localhost:8000/examples/
online example: http://yiminghe.github.io/zscroller/
most same with zynga scroller, extra:
name | description | type | default |
---|---|---|---|
scrollbars | whether show scrollbars | bool | false |
onScroll | onScroll callback | () => void | null |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
zscroller is released under the MIT license.