rsdn-scroll-js
v1.0.2
Published
Library scroll js
Readme
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
})