You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
assets | 5 years ago | |
es | 5 years ago | |
lib | 5 years ago | |
HISTORY.md | 5 years ago | |
README.md | 5 years ago | |
package.json | 5 years ago |
README.md
zscroller
dom scroller based on zynga scroller
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
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.