1.0.2 • Published 7 years ago
rsdn-scroll-js v1.0.2
RSDN SCROLL JS
Setting
$ npm install rsdn-scroll-js -D
or
$ yarn add rsdn-scroll-js -DUsages
scroll$(config)
config
| Property | Type | Description |
|---|---|---|
| root | string | Selector of element (id,class,tagname,...) |
| length | number | length of list item |
| itemHeight | number | height of item |
| totalItemShow | number | Total item show |
Example
scroll$({
root: '#calendar',
length: 10,
itemHeight: 80,
totalItemShow: 3
})