Giter Club home page Giter Club logo

Comments (7)

hellorich avatar hellorich commented on June 9, 2024 2

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.

frederickfogerty avatar frederickfogerty commented on June 9, 2024 1

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.

siamkreative avatar siamkreative commented on June 9, 2024

Same issue here

from luminous.

hellorich avatar hellorich commented on June 9, 2024

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.

siamkreative avatar siamkreative commented on June 9, 2024

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.

AlexisWalravens avatar AlexisWalravens commented on June 9, 2024

Same issue here, was there any progress on this ?

from luminous.

frederickfogerty avatar frederickfogerty commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.