Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
lightgallery.js Images not loading

i tried to use lightgallery.js (https://www.youtube.com/watch?v=nT20JV1nRZg) on my website. The Problem is, when i am clicking on an image, the gallery opens and gets stuck in the loading screen. I think its due to my html structure but i dont know how to fix it.

HTML:

                        <section class="tiles">
                            <article class="style6">
                                <span class="image">
                                    <img src="images//graff_p/_DSC9464.jpg" alt="" />
                                </span>
                            </article>
                            <article class="style6">
                                <span class="image">
                                    <img src="images//graff_p/_DSC9511.jpg" alt="" />
                                </span>
                            </article>
                            ...
                        </section>

JS:

lightGallery(document.querySelector('.tiles'))

EDIT:

Code from tutorial that works:

HTML:

<div class="gallery">
  <a href="img1.jpg">
    <img src="img1.jpg" alt="">
  </a>
  <a href="img2.jpg">
    <img src="img2.jpg" alt="">
  </a>
  ...
</div>

JS: lightGallery(document.querySelector('.gallery'))

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!