1.0.2 • Published 5 years ago
rsdn-scroll-js v1.0.2
RSDN SCROLL JS
Setting
$ npm install rsdn-scroll-js -D
or
$ yarn add rsdn-scroll-js -D
Usages
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
})