Skip to content

Latest commit

 

History

History
76 lines (49 loc) · 1.89 KB

File metadata and controls

76 lines (49 loc) · 1.89 KB

zscroller


dom scroller based on zynga scroller

NPM version gemnasium deps node version npm download

Usage

import DOMScroller from 'zscroller/lib/DOMScroller';
var domScroller = new DOMScroller(contentNode, options);

Example

http://localhost:8000/examples/

online example: http://yiminghe.github.io/zscroller/

install

zscroller

API

options

most same with zynga scroller, extra:

name description type default
scrollbars whether show scrollbars bool false
onScroll onScroll callback () => void null

method

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

zscroller is released under the MIT license.