A Simple Vanilla JavaScript Image Slideshow | vshowbox

vShowBox is a simple library of vanilla Javascript that helps you create and display your photo slideshow in a responsive lightbox popup window.

automatic image slider in html css, image slider in modal popup, modal image gallery javaScript, multiple image popup on click, bootstrap modal on image click

How to make use of it:

1. Download and install the VSHOWBOX library.

# Yarn
$ yarn add vshowbox
# NPM
$ npm install vshowbox --save

2. Import VSHOWBOX into your module.

// ES 6
import vShowBox from 'vshowbox';
// CommonJS:
const vShowBox = require('vshowbox');

3. For browsers, join the following JavaScript and CSS files on the page.

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

4. Initialize the vShowbox.

const vshowbox = window.vShowBox.init();

5. Create photos on the web page.

<section class="sb-previews">
  <div class="sb-preview" style="background-image: url('1.jpeg')" title="Img 1"></div>
  <div class="sb-preview" style="background-image: url('2.jpeg')" title="Img 2"></div>
  <div class="sb-preview" style="background-image: url('3.jpeg')" title="Img 3"></div>
  <div class="sb-preview" style="background-image: url('4.jpeg')" title="Img 4"></div>
  <div class="sb-preview" style="background-image: url('5.jpeg')" title="Img 5"></div>
</section>

6. Create a slideshow modal.

<section class="sb-modal">
  <span class="sb-slide-count btn"></span>
  <span class="sb-close btn">&times;</span>
  <div class="sb-stage">
    <div class="sb-caption"></div>
    <span class="sb-prev btn">&#10094;</span>
    <span class="sb-next btn">&#10095;</span>
  </div>
</section>

responsive slideshow model, vshowbox Plugin/Github


See Demo And Download

Official Website(vipranarayan14): Click Here

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

Related Posts

drag-drop-file-5x5-jq-uploader

Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

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…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…