A basic slider with 0 dependencies
Demo on CodePen
Turns a basic unordered list into a slider.
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.