Comments (7)
Hi @frederickfogerty - I've had what I think may be similar issues with the Gallery functionality as @NicholasJohn16 - I'm not entirely sure its working as intended, either locally in my project (standard Luminous lightbox seems fine) nor in codepens I've based on the Lightbox example, modified using Gallery code in the readme.
Here's one of my pens: https://codepen.io/anon/pen/RegwWp
Would it be possible to get an official working codepen of the gallery functionality?
from luminous.
Hey there @NicholasJohn16, sorry to hear that you've had issue with Luminous! This is on my list of issues to look at for the next two weeks. I'll keep this issue updated with my progress.
In the meantime, it would make my job a lot easier if you were able to provide a standalone reproduction of this bug, either on codesandbox or codepen. Do you think you'd be able to do this?
from luminous.
Same issue here
from luminous.
I did eventually get this working, although my code doesn't work in Codepen as its specific to the NPM installation. I'll add what I have below (ES6 as I'm using Babel):
import { Luminous, LuminousGallery } from 'luminous-lightbox';
new LuminousGallery(document.querySelectorAll('.gallery-image'), {
arrowNavigation: true
},
{
caption: function (trigger) {
return trigger.querySelector('img').getAttribute('alt');
}
});
For me the important bits were to include LuminousGallery in the module import, and to make sure I was using querySelectorAll instead of querySelector, a copy and paste oversight on my part.
If I recall correctly, I also had trouble with the next and prev arrows until I made sure all my image paths were correct and unique, not empty or repeating image paths I was using to test the script.
Hope this helps.
from luminous.
Thanks @hellorich, unfortunately I am using the CDN version, and I wonder if LuminousGallery is included. I don't think it is because I'm using the exact same code as you but I can't get arrowNavigation to work.
If you're using the pre-built version of Luminous, it will automatically make window.Luminous and window.LuminousGallery available for your use when included on your page.
from luminous.
Same issue here, was there any progress on this ?
from luminous.
Hi all. This was a regression from a previous release and is fixed in the PR #121. If you would like to checkout that PR and test that it fixes the problem, that would be much appreciated. Otherwise, sit tight and a fix should be released soon!
from luminous.
Related Issues (20)
- Separate basic theme and "fullscreen"-esque mode HOT 1
- injectBaseStyles not setting HOT 2
- How to inject captions when using LuminousGallery class HOT 1
- Add option to set caption (suggestion) HOT 2
- I want to give a class name to the enlarged image. HOT 2
- Demo url on documentation leads to 404 error
- Action Required: Fix Renovate Configuration
- is it possible to use luminous in vue.js? HOT 1
- Dependency Dashboard
- Include license in distributed JS HOT 3
- closetrigger? HOT 2
- The image file's height is over when the image is big size HOT 6
- The automated release is failing 🚨
- Keyframe rule ignored due to bad selector. HOT 2
- Small viewport sizes don't scale the image properly HOT 3
- Arrows are not in the vertical center of the image HOT 1
- onChange doesn't work HOT 1
- What is the proper way to import LuminousGallery?
- Direct including a script from CDN (Unpkg, jsDelivr, ...)
- Call for Maintainer(s) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luminous.