1.0.3 • Published 8 years ago

smooth-horizontal-scroll v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
8 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

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago