Slider With Autoplay and Manual Steering Built with Vanilla JS

Slider is a vanilla JavaScript library for creating a responsive and auto-rotating image library with custom titles and captions text.

css responsive image carousel, responsive automatic image slider in html, automatic image slider in html css, image carousel slider html

How to make use of it:

1. Add images with image/photo captions and carousel controls to the carousel.

<section id="slider" class="slider">
  <div id="wrapper" class="slides-wrapper">
      <div id="slide" class="slide" data-slide-id="0">
          <img class="slide__img" src="1.jpg" alt="slider-0">
          <div class="slide__caption">
              <span class="slide__caption--title">Slide 1</span>
              <span class="slide__caption--text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsam assumenda nostrum quisquam voluptatem consectetur dolore, necessitatibus doloribus temporibus, enim animi adipisci architecto ipsum, labore corporis! Quaerat doloribus consequatur ex blanditiis?</span>
          </div>
      </div>
      <div id="slide" class="slide" data-slide-id="1">
          <img class="slide__img" src="2.jpg" alt="slider-1">
          <div class="slide__caption">
              <span class="slide__caption--title">Slide 2</span>
              <span class="slide__caption--text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsam assumenda nostrum quisquam voluptatem consectetur dolore, necessitatibus doloribus temporibus, enim animi adipisci architecto ipsum, labore corporis! Quaerat doloribus consequatur ex blanditiis?</span>
          </div>
      </div>
      <div id="slide" class="slide" data-slide-id="2">
          <img class="slide__img" src="https://images.unsplash.com/photo-1511431426884-c1525fc26c8a?auto=format&fit=crop&w=1350&q=80&ixid=dW5zcGxhc2guY29tOzs7Ozs%3D" alt="slider-2">
          <div class="slide__caption">
              <span class="slide__caption--title">Slide 3</span>
              <span class="slide__caption--text">3.jpg</span>
          </div>
      </div>
      <div id="slide" class="slide" data-slide-id="3">
          <img class="slide__img" src="4.jpg" alt="slider-3">
          <div class="slide__caption">
              <span class="slide__caption--title">Slide 4</span>
              <span class="slide__caption--text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsam assumenda nostrum quisquam voluptatem consectetur dolore, necessitatibus doloribus temporibus, enim animi adipisci architecto ipsum, labore corporis! Quaerat doloribus consequatur ex blanditiis?</span>
          </div>
      </div>
  </div>
  <a href="#" class="slider__btn slider__btn--prev" data-slide="prev">
      <i class="fa fa-chevron-left" aria-hidden="true"></i>
  </a>
  <a href="#" class="slider__btn slider__btn--next" data-slide="next">
      <i class="fa fa-chevron-right" aria-hidden="true"></i>
  </a>
  <div class="indicators">
      <ul class="indicators__list">
          <li class="indicators__item active" data-slide-to="0"></li>
          <li class="indicators__item" data-slide-to="1"></li>
          <li class="indicators__item" data-slide-to="2"></li>
          <li class="indicators__item" data-slide-to="3"></li>
      </ul>
  </div>
</section>

2. You need to download Font Awesome for navigation icons.

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">

3. Load the compiled JavaScript and CSS files into the document.

<link href="css/main.css" rel="stylesheet">
<script src="js/script-compiled.js"></script>

responsive image slider carousel Plugin/Github


See Demo And Download

Official Website(karolkkas): Click Here

This superior jQuery/javascript plugin is developed by karolkkas. For extra advanced usage, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

jquery-cookie-consent

Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…

Timepicker-Plugin-for-jQuery

Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…

angular-ngx-carousel-slider

A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…

vue-fullpage-modal

First Mobile Full-screen Modal Popup Library For Vue

Vue full-page modal is a responsive, mobile-compatible, screen-friendly pop-up library for Vue.js. Must Read: Modal Component Is Written in Vanilla JS | ensemble Modal How to make…

random-number-picker

Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…