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

120
Views
Detectar que el carrusel de Bootstrap terminó

Me gustaría saber si hay alguna forma de detectar cuando el carrusel de Bootstrap termina de ejecutarse, ya que necesito ejecutar una función cuando el carrusel llega al último elemento.

Aplico aquí la pregunta a un comentario para verlo en mejor formato:

 const carousel = document.getElementById("carouselContainer"); carousel.addEventListener("slid.bs.carousel", function (e) { if (e.direction === "right" && e.to === elements.length - 1) { // Take an action } });

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Sí, verifique la documentación : debe comparar from y to según la direction .

 if (direction == 'left' && to == 0) { startReached(); } if (direction == 'right' && to == elements.length - 1) { endReached(); }
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!