skrlspeed

Scroll speed controller

Usage no npm install needed!

<script type="module">
  import skrlspeed from 'https://cdn.skypack.dev/skrlspeed';
</script>

README

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