/slider.js

A basic slider in vanilla JavaScript and SASS

Primary LanguageJavaScriptMIT LicenseMIT

Slider

A basic slider with 0 dependencies

Demo

Demo on CodePen

Description

Turns a basic unordered list into a slider.

Usage

With the previous and next button the user can go one slide to the left or right. When this action is not possible the button will be greyed out. The same can be achieved by swiping left or right on a touchscreen.

There is also an option to automatically slide. When clicked on either button or touched this mode will be turned off.