Beautiful Image Gallery Lightbox In Vanilla JS – Gallery Box

Category: Gallery , Modal & Popup | October 29, 2018
Author: chcepe
Views Total: 1,182 views
Official Page: Go to website
Last Update: October 29, 2018
License: MIT

Preview:

Beautiful Image Gallery Lightbox In Vanilla JS – Gallery Box

Description:

Gallery Box is a lightweight JavaScript plugin to showcase several images in a gallery popup where the users are able to navigate between images with navigation buttons and keyboard arrows.

How to use it:

Import the Gallery Box’s JavaScript and CSS into the HTML document.

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

Insert an image list to the gallery box. Done.

<div id="gbox">
  <ul>
    <li><img src="1.jpg" id="thumb"></li>
    <li><img src="2.jpg" id="thumb"></li>
    <li><img src="3.jpg" id="thumb"></li>
    ...
  </ul>
</div>

You Might Be Interested In:


Leave a Reply