A Vanilla JavaScript slider that serves multiple purposes. This JS slider library allows you to create a configurable, mobile-compatible library for displaying images, videos, or any content on the web.
This is a vanilla javascript slider. It can count on free, but I chose to use the always awesome “Font Awesome” for the navigation arrows.
If you hover over the scrollbar and mouse over several times, it will fire the event multiple times. This caused the slider to keep going…just like the Goldendoodle
you’ll see in these pictures, Reggie
.
Must Read: An Accessible Touch-enabled Slider Web Component | fg-carousel
More Features:
- Responsive and multi-platform.
- Automatically adjusts the height to suit the content.
- Autoplay mode. Automatically pauses carousel display when away from view.
- Allows moving between the carousel elements by swiping or dragging with the mouse.
- Allows displaying multiple items for each show.
- Easy to implement without any JS call.
- Easy to configure via HTML data attributes.
How to make use of it:
Put everything inside the template tag.
<template class="reggie-slider-template"></template>
You will need some data attributes to make it work.
data-id="foo" \\ unique to each slider data-swipe="boolean" \\ allow swiping with mouse data-auto-slide="boolean" \\ auto slide slider every 5 seconds data-arrows="boolean" \\ show or hide navigation data-auto-height="false" \\ correct the height of the slider if images are different heights
See Also –
A Simple Infinite Image Carousel Using Pure Javascript
Easy Responsive Ideal Image Slider Carousel in vanilla JS
Responsive & Flickable Carousels Content Slider Plugin | flickity
See Demo And Download
Official Website(abohall): Click Here
This superior jQuery/javascript plugin is developed by abohall. For extra Advanced usage, please go to the official website.