Simple Carousel In Pure Vanilla Javascript with Lazyloading

A simple carousel in vanilla javascript/web component/SF-component plugin for your web project.

card carousel ui, carousel ui design mobile, carousel ui examples, mobile carousel examples, carousel designs website

Features

  • In vanilla JS (ES6)
  • Aligned horizontally and vertically images to fit in the container
  • Arrows to move through pictures
  • The number represents the total number of images and the current image index
    full-screen button
  • Motion picture changing
  • Images can be replaced with other HTML elements (to make slides)

How to make use of it:

1. Import Simple-Carousel files into your document.

<link rel="stylesheet" href="sc.css">
<script src="sc.js"></script>

2. Add your own images with the loading spinner and carousel controls to the page.

<div class="cor" id="demo">
  <img class="loading" style="position: absolute" src="loading.gif" alt="loading">
  <div class="scrollD">
    <!-- insert imgs here -->
    <img data-src="https://picsum.photos/600/600?image=488" src="https://picsum.photos/600/600?image=488">
    <img data-src="https://picsum.photos/600/600?image=454">
    <img data-src="https://picsum.photos/600/600?image=449">
  </div>
  <div class="arrow l noselect">
    <img src="down.svg" class="fit" alt="\/" />
  </div>
  <div class="arrow r noselect">
    <img src="down.svg" class="fit" alt="\/" />
  </div>
  <div class="br">
    <div class="fs right">
      <img src="fs.svg" alt="FS" />
    </div>
    <div class="num"></div>
  </div>
</div>

3. Configure the carousel.

SC.new(document.querySelector("#demo"));

minimal card carousel, Simple-Carousel Plugin/Github


See Demo And Download

Official Website(aadityataparia): Click Here

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

Related Posts

jquery-fancy-file-uploader

Convert An HTML File Input Type Into a Fancy File Uploader

jQuery Fancy File Uploader is a jQuery extension for converting an HTML file input type into a portable fancy file uploader. Choose from an MIT or LGPL…

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…