npm install -S horizontal-scroll
HTML
<div class="container">
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</div>
Javascript
var blocks = document.getElementsByClassName('block');
var container = document.getElementsByClassName('container');
var hs = new HorizontalScroll.default({
blocks : blocks,
container: container,
});
The list container.
Item in the list.
If true, the list should have a skew relative to the scroll speed.
Friction of the scroll.
Strength of the skew effect.
Limit value of the skew effect.
https://corentinfardeau.github.io/horizontal-scroll/
MIT.