responsive image carousel lightbox - Download Fullscreen Responsive Image Carousel Lightbox With jQuery

Download Fullscreen Responsive Image Carousel Lightbox With jQuery

Posted on

This time I will share jQuery Plugin and tutorial about Fullscreen Responsive Image Carousel Lightbox With jQuery, hope it will help you in programming stack.

responsive image carousel lightbox - Download Fullscreen Responsive Image Carousel Lightbox With jQuery
File Size: 4.66 KB
Views Total: 4222
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

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.

1 <link rel="stylesheet" href="css/lightbox.css">
3         integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
4         crossorigin="anonymous">
5 </script>
6 <script src="js/jquery.lightbox.js"></script>

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

1 <link rel="stylesheet"
3       integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
4       crossorigin="anonymous">

3. Add thumbnails and image links to the gallery.

01 <div id="gallery">
02  
03   <a href="1.jpg" class="gal_link">
04     <img src="thumb-1.jpg">
05   </a>
06   <a href="2.jpg" class="gal_link">
07     <img src="thumb-2.jpg">
08   </a>
09   <a href="3.jpg" class="gal_link">
10     <img src="thumb-3.jpg">
11   </a>
12   ...
13  
14 </div>

4. Initialize the lightbox plugin and done.

01 (function($){
02    
03   $(document).ready(function(){
04      
05     var galLink = $("a.gal_link");
06      
07     galLink.lightbox();
08      
09   });
10    
11 })(jQuery);

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

source : jquery.net