skrl
v1.0.1
Published
Scroll content by wheel & touches
Downloads
3
Readme
skrl
Scroll content by wheel & touches
Install
npm install --save skrl
component install andrepolischuk/skrl
Usage
var scroll = skrl(id[, params, callback]);
id
ID of scroller DOM element
params.reverse
Reverse scrolling enable
params.interval
Scrolling interval (px)
callback
Scrolling callback (get curent offset attribute)
API
skrl.el
Scroller area
skrl.go(offset)
Scroll to defined offset (px)
License
MIT