lightgallery

Lightgallery with images in separate divs

那年仲夏 提交于 2021-01-29 04:27:07
问题 I have multiple images in rows and I want Lightgallery to capture all the images on my page. I can only seem to get separate light galleries for each row instead of one big gallery. The problem occurs because I have sets of images inside divs, with multiple divs in one big container. How can I get all the images in retreats-image-container to merge/join/combine into one gallery? <div class="container-fluid" id="retreats-image-container"> <div class="row row-center"> <a href="img/retreats

LightGallery Dailymotion

假装没事ソ 提交于 2020-01-26 02:26:27
问题 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 code as a dynamicEl:[] : {"src":"<?php print 'http://www.dailymotion.com/video/'.$dailymotion['safe_value']; ?>","thumb":"<?php print 'http://www.dailymotion.com/thumbnail/video/'.$dailymotion['safe_value']; ?>"}, Same code as I do with youtube

LightGallery Dailymotion

我与影子孤独终老i 提交于 2020-01-26 02:26:27
问题 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 code as a dynamicEl:[] : {"src":"<?php print 'http://www.dailymotion.com/video/'.$dailymotion['safe_value']; ?>","thumb":"<?php print 'http://www.dailymotion.com/thumbnail/video/'.$dailymotion['safe_value']; ?>"}, Same code as I do with youtube

Add Class on ready, remove class on hover

大城市里の小女人 提交于 2020-01-17 05:46:13
问题 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() { $("#gallery li a").load(function(){ $($(this).find("img")[0]).addClass("inkwell"); }); $("#gallery li a").hover(function(){ $($(this).find("img")[0]).removeClass("inkwell").addClass("mayfair"); }); }); the jQuery code above didn't seem to work well.

How to create a slideshow with drag drop clones

天大地大妈咪最大 提交于 2020-01-15 08:52:28
问题 I want to create a page where the user can choose the images that will be shown in a slideshow. I am attempting to use mootools drag and drop and would like to use lightgallery.js. How can I pass an array of dropped images into the dynamicEL? Is there a way to load the images using the id/class of #cart.item? Any help is greatly appreciated. And apologies in advance for being new at coding. Here is a codepen that only seems to be slightly working http://codepen.io/ssab/pen/QGyKVO $(function()

Isotope Filters to only display Filtered Light Gallery images

烈酒焚心 提交于 2019-12-25 07:47:19
问题 I wanted to create a filtering portfolio for my website, I've got everything setup but the thing is, When I use Isotope to filter a category, of course it filters out but when I click on the image and fire up lightgallery, it shows all the images from all categories. I want the images of a particular category to be visible in the slideshow of lightgallery. I saw some answer in stack, I guess I need to implement a shadowbox. but don't know how. Please help me. My Codepen //isotope Code $('

lightGallery (jQuery plugin) in AngularJS

陌路散爱 提交于 2019-12-19 04:11:32
问题 I'm trying to get the lightGallery jQuery plugin (http://sachinchoolur.github.io/lightGallery/index.html) to work with AngularJS. I found some answers that suggested I needed a directive, so I created the following: .directive('lightGallery', function() { return { restrict: 'A', link: function(scope, element, attrs) { jQuery(element).lightGallery(); } }; }) Then in my view I do this: <ul lightGallery> <li ng-repeat="photo in album.photos" data-src="{{photo.fullres}}"> <img ng-src="{{photo

React lightgallery.js integration without JQuery?

对着背影说爱祢 提交于 2019-12-13 20:17:17
问题 I've been searching for a proper guidance for integrating lightgallery.js library into my application, but after several hours I did not find any solutions. Since I'm using React, I don't want to mix it with JQuery. I've stumbled across many similar questions like this one, but since all of them are using JQuery, I can't use their solutions. Also, I've found react-lightgallery package (React wrapper for lightgallery.js), but it does not include video support yet. In the lightgallery.js

Preloader before Lightgallery, isotope using Imageloaded

泪湿孤枕 提交于 2019-12-12 04:31:57
问题 I'm using LightGallery to showcase my portfolio and isotope to filter the categories. As my images are in high quality I'm trying to use ImageLoaded but not able to achieve, still learning jQuery. I want the ImageLoaded to load the images in the background while a preloader(css or gif) is displayed and when its done loading give an entrance to the image like a zoom-in. My Codepen $(document).ready(function() { var $gallery = $('#gallery'); var $boxes = $('.revGallery-anchor'); $boxes.hide();

multiple justified image grid galleries - custom lightbox call / markup with lightgallery

你说的曾经没有我的故事 提交于 2019-12-11 09:51:01
问题 Holla, I am using JIG to generate my galleries. Galleries have the following structure: <div id="jig1" class="justified-image-grid jig-eec93aceb26f618c747e9fe2abded7ce jig-preset-c1" style="width: 1278px;"> <div class="jig-imageContainer jig-contentID-ML-1191"> <div class="jig-overflow" style="opacity: 1; width: 658px; height: 438px;"> <a class="jig-link lulz jig-loaded" rel="jig[2]" test="lala" href="http://127.0.0.1/wp/wp-content/uploads/2014/11/untitled-imgp1913.jpg"> <img src="http://127