dom scroller based on zynga scroller
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
examples
src
.editorconfig
.eslintignore
.gitignore
HISTORY.md
README.md
index.js
package.json

README.md

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.