Questions tagged [lightgallery]

LightGallery is a customizable, modular, responsive, lightbox gallery plugin for jQuery.

LightGallery is a customizable, modular, responsive, lightbox gallery plugin for jQuery that uses a CSS-only approach for resizing images and videos.


Resources :


Related tags :

161 questions
0
votes
1 answer

Add Class on ready, remove class on hover

I'm creating my portfolio website. I'm looking to add class on document ready, and remove/change that class to a different class on hover. I'm using lightgallery & CSS gram filters to my images on load and hover. $(document).ready(function()…
Kamalakannan
  • 119
  • 2
  • 16
0
votes
1 answer

Lightgallery not working (using jade and loading page separately)

I am relatively new to javascript and I cannot figure out what I might be doing wrong here to implement lightgallery in my code. I included all stylesheets (in the header) and relevant scripts. Here is what part of my head and body looks…
0
votes
1 answer

lightGallery works perfectly on jsfiddle, but not on my local test page

Link to jQuery plugin github and documentation It is the exact same code, the only difference being that I link to several sources/external files instead of just throwing them all into one big file like on jsfiddle. But I get no error in the browser…
user6285978
0
votes
3 answers

lightgallery.js multiple instances not working

I am trying to use "LighGallery.js" in my page. Situation: I have several groups of images and each group should be displayed in its own gallery. For each group, there is 1 image visible, and the rest are hidden and are to be shown in a gallery when…
Ahs N
  • 8,233
  • 1
  • 28
  • 33
0
votes
2 answers

Load more button in AngularJS and lightGallery

I am using lightGallery for a website and I wanted to add a "load more" button to the gallery page, mostly for faster loading on mobile phones. I found various methods and tried them. Most of them don't work and/or doesn't suit my need for loading…
Ifran
  • 83
  • 4
0
votes
1 answer

lightGallery in lightSlider - Slider.prepend() for 'onSliderLoad' is not working

I have lightslider using lighGallery in the onSliderLoad. I have two set of code in my code snippet. jsfiddle Code 1: Page load lightGallery view. I'm rendering image from HTML directly Code 2: Button - ButtonClick_LightGallery - click lightGallery…
Dhana
  • 1,618
  • 4
  • 23
  • 39
0
votes
1 answer

What are the Pager and Hash plugins for lightGallery?

I came across the Pager and Hash plug-ins for lightGallery: http://sachinchoolur.github.io/lightgallery1.2/docs/api.html#lg-pager The docs tell how to enable them. But what are they for? What's their use?
marmistrz
  • 5,974
  • 10
  • 42
  • 94
0
votes
3 answers

Center thumbnails in LightGallery

I'm using LightGallery to make an image gallery and everything's working fine so far but I want to align the entire grid of thumbnails to the center of the page. Right now is just stuck to the left side.Here's the code I used:
Ovidiu G
  • 1,253
  • 5
  • 25
  • 47
0
votes
1 answer

lightGallery dynamic mode not working with Firefox and Safari

I have this code set up to generate an image gallery gallery containing 34 images: $(document).ready(function (){ $('#view-gallery').on('click', function() { $(this).lightGallery({ dynamic: true, dynamicEl: [{ "src":…
Jack K
  • 1
  • 3
0
votes
1 answer

lightGallery in dynamic mode: incorrect image is loading when clicked

When I set up my lightGallery dynamically, and use 'index' to target which image should open when a link is clicked, the wrong image shows up unless it's the very first click. In other words, if you initially click on a thumbnail image, you'll see…
0
votes
3 answers

For loop inside object javascript

I'm using lightGallery and I'm using dynamic creation of galleries, this is the code to generate just one image: $(this).lightGallery({ dynamic:true, dynamicEl: [{ 'src':'css/images/pictures/gal_'+id+'/1.jpg', …
Peter Zelak
  • 95
  • 1
  • 10
0
votes
2 answers

unable to get Lightagallery js to work: Uncaught TypeError: Cannot read property 'modules' of undefined

i've already seen some user with the same problem: Lightgallery not working but i still can't get it to work, here's my code: Test
CiaKKi
  • 1
  • 1
0
votes
2 answers

Lightgallery - Showing local comment box html instead of fb comment box

I would like to display my custom comment box html instead of facebook's comment box in my CakePHP site's Lightgallery implementation. How can I do that? Will it need plugin customization? And, facebook comment box implementation is not responsive…
Gaurav
  • 1,942
  • 19
  • 31
0
votes
2 answers

lightgallery markup trouble with justified image grid

Hi I am having trouble implementing the lightgalley lightbox with my JIG galleries. The JIG generated gallery code looks like this: HTML
florian
  • 604
  • 8
  • 31
0
votes
1 answer

LightGallery Dailymotion

I use LightGallery (https://github.com/sachinchoolur/lightGallery) for my website and I need to show some dailymotion videos. This plugin works fine with youtube/vimeo, but I get nothing from a dailymotion videos. To show this I use a loop with this…
Mistraë
  • 338
  • 5
  • 21
1 2 3
10
11