Responsive & Touch-Friendly jQuery Gallery Lightbox Plugin – lightGallery

Gallery
Demo    Download
File Size: 1.8 MB
Views Total: 640 views
Last Update:April 13, 2021
Publish Date: February 28, 2014
Official Website: Go to website
License: MIT
Plugin Author: sachinchoolur

A Free jQuery lightbox Plugin with lightGallery.js allows you to create animated thumbnails for your gallery with displaying an image/video gallery in a fullscreen lightbox with CSS3 transition effects. It supports with touch and swipe navigation on touchscreen devices and as well with mouse drag and drop for desktop system. It navigate between thumbnails element via swipe of their fingers or mouse drag.

There Are Many More Features:

It has with include with 30+ transition animations. this is support with Auto play when images loaded with Infinite looping. it is Supports youtube & vimeo videos, not just images.

  • Image captions & descriptions support.
  • Arrows, thumbnails and keyboard navigation.
  • Cross browser. Supports all major browsers.
  • Easing options support.
  • Multiple instances on one page.

How to used :

Add with jQuery library and jQuery lightGallery plugin’s CSS and javascript in the document.

Here, We’re adding jQuery Library files Of Javascript and CSS files into the existing code.

<link rel="stylesheet"  href="/path/to/dist/css/lightgallery.min.css" />
<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/js/lightgallery-all.min.js"></script>

load with core JavaScript and optional extensions on your choice.

scr: The large version of your image/video. Then include jQuery and lightgallery.min.js into your document. If you want to have any lightgallery plugin, you can have it after lightgallery.min.js. lightGallery and it’s plugins are available in lightgallery-all.js

<!-- Core -->
<script src="/path/to/dist/js/lightgallery.min.js"></script>
<!-- Autoplay -->
<script src="/path/to/modules/lg-autoplay.js"></script>
<!-- Fullscreen -->
<script src="/path/to/modules/lg-fullscreen.js"></script>
<!-- Hashtag -->
<script src="/path/to/modules/lg-hash.js"></script>
<!-- Pager -->
<script src="/path/to/modules/lg-pager.js"></script>
<!-- Rotate -->
<script src="/path/to/modules/lg-rotate.js"></script>
<!-- Social share -->
<script src="/path/to/modules/lg-share.js"></script>
<script src="/path/to/modules/lg-thumbnail.js"></script>
<!-- HTML5/YOUTUBE/VIMEO Video -->
<script src="/path/to/modules/lg-video.js"></script>
<script src="/path/to/modules/lg-zoom.js"></script>

Create an image/video gallery with Html5 data-* attributes.

Here, we created an id assigning lightGallery with the class attribute gallery.

<ul id="lightGallery" class="gallery">
  <li data-title="Title 1" data-desc="Description 1" data-responsive-src="mobile1.jpg" data-src="img1.jpg"> <a href="#"> <img src="thumb1.jpg" /> </a> </li>
  <li data-title="Title 2" data-desc="Description 2" data-responsive-src="mobile2.jpg" data-src="img2.jpg"> <a href="#"> <img src="thumb2.jpg" /> </a> </li>
  <li data-title="Title 3" data-desc="Description 3" data-responsive-src="mobile3.jpg" data-src="img3.jpg"> <a href="#"> <img src="thumb3.jpg" /> </a> </li>
  ...
</ul>

Initialize the gallery lightbox with default settings.

Finally, you need to initiate the gallery by adding the following code.

$(document).ready(function() {
  $("#lightGallery").lightGallery();
});

Done

List Of Version :
  • v1.1.3
  • 1.10.0
  • 1.9.1-beta-0
  • 1.9.0
  • 1.8.3
  • 1.8.2
  • 1.8.1
  • 1.8.0
  • 1.7.3
  • 1.7.2
  • 1.7.1
  • 1.7.0
  • 1.6.14
  • 1.6.13
  • 1.6.12
  • 1.6.11
  • 1.6.10
  • 1.6.9
  • 1.6.8
  • 1.6.7
  • 1.6.6
  • 1.6.5
  • 1.6.4
  • 1.6.3
  • 1.6.2
  • 1.6.1
  • 1.6.0
  • 1.5.0
  • 1.4.0
  • 1.3.9

Nola Arney

Nola Arney is a full stack web developer who has Author at jQuerypost. Her ambition for development is only matched by his desire to find the perfect meme for every occasion.