skrlspeed

0.2.2 • Public • Published

skrlspeed

Scroll speed controller

Install

npm install --save skrlspeed
component install andrepolischuk/skrlspeed

API

skrlspeed([element])

Create controller for element, default document

var ctrlElement = skrlspeed(document.querySelector('.element'));
var ctrlPage = skrlspeed();

.set(factor)

Set speed factor, default 1

skrlspeed().set(-1);

.clear()

Set default speed factor

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i skrlspeed

Weekly Downloads

0

Version

0.2.2

License

MIT

Last publish

Collaborators

  • andrepolischuk