1.0.3 • Published 7 years ago

smooth-horizontal-scroll v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
7 years ago

Smooth Horizontal Scroll

Vanilla JS smooth horizontal scroll functionality.

Create a parent container with id="scroll-container". Inside, place scrollable items with class="scroll-item".

See index.html for example of markup structure.

Initialize:

var horizontalScroll = smoothHorizontalScroll();
horizontalScroll.init();

Call every time you add a scroll item to scroll-container:

horizontalScroll.updateScrollItems();
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago