horizontal-scroll
Version:
Horizontal scroll with inertia
59 lines (43 loc) • 996 B
Markdown
horizontal-scroll
=====
class="container">
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</div>
```
Javascript
```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.
```
npm install -S horizontal-scroll
```
HTML
```html
<div