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

143
Views
Cómo agregar configuraciones a lightGallery

Estoy usando lightGallery para abrir una caja de luz de imágenes usando la solución a continuación, que se encuentra aquí: https://stackoverflow.com/a/54764289/1390648

¿Dónde puedo agregar la configuración de los documentos de lightGallery al código siguiente para controlar el mode , la speed y otras configuraciones?

Cada vez que trato de agregarlos, se rompe la apertura de lightGallery.

 function initLightGallery() { lightGallery(document.getElementById('lightgallery')); $("#magic_start").on("click", () => { $("#lightgallery :first-child > img").trigger("click"); }); } initLightGallery();
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Reemplace su segunda línea

 lightGallery(document.getElementById('lightgallery'));

por

 lightGallery(document.getElementById('lightgallery'), { speed: 500, mode: 'fade', ...Other settings });

Está justo ahí en los documentos...

about 4 years ago · Juan Pablo Isaza Report
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!