Fullscreen Responsive Image Carousel Lightbox With jQuery

File Size: 4.66 KB
Views Total: 5746
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Fullscreen Responsive Image Carousel Lightbox With jQuery

A simple, lightweight, responsive jQuery image lightbox plugin where the users are able to scroll through the enlarged images with navigation arrows just like a carousel.

Click on the thumbnails to open the lightbox. Click on the X button or press the ESC key to close the lightbox.

How to use it:

1. Load the stylesheet lightbox.css in the header, and the JavaScript lightbox.css after jQuery.

<link rel="stylesheet" href="css/lightbox.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" 
<script src="js/jquery.lightbox.js"></script>

2. Load the necessary Font Awesome for the lightbox icons.

<link rel="stylesheet" 

3. Add thumbnails and image links to the gallery.

<div id="gallery">

  <a href="1.jpg" class="gal_link">
    <img src="thumb-1.jpg">
  <a href="2.jpg" class="gal_link">
    <img src="thumb-2.jpg">
  <a href="3.jpg" class="gal_link">
    <img src="thumb-3.jpg">


4. Initialize the lightbox plugin and done.

    var galLink = $("a.gal_link");

This awesome jQuery plugin is developed by karolinaklein. For more Advanced Usages, please check the demo page or visit the official website.