Responsive & Touch-Friendly jQuery Gallery Lightbox Plugin – lightGallery

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

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

Thanks for make jQuery plugin is developed by For more Helpfull for users, please check the demo page or visit the official website.
List Of Version :
  • v1.1.3
  • 2.8.0-beta.2
  • 2.8.0-beta.1
  • 2.7.2
  • 2.7.2-beta.1
  • 2.7.2-beta.0
  • 2.7.1
  • 2.7.1-beta.1
  • 2.7.1-beta.0
  • 2.7.0
  • 2.7.0-beta.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-beta.2
  • 2.6.0-beta.1
  • 2.5.0
  • 2.5.0-beta.5
  • 2.5.0-beta.4
  • 2.5.0-beta.3
  • 2.5.0-beta.2
  • 2.5.0-beta.1
  • 2.4.0
  • 2.4.0-beta.0
  • 2.3.0
  • 2.3.0-beta-1
  • 2.3.0-beta.4
  • 2.3.0-beta.3
  • 2.3.0-beta.2
  • 2.3.0-beta
  • 2.2.1

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.

Related jQuery Plugins

You Might Also Like