Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

138
Visualizações
Testimonial Component Looping Interval Unexpected Behavior: JavaScript

I created a testimonial component using HTML, CSS, and Javascript but the logic is not working as per my expectations.

What I expected my code to do:

  1. Is to loop through all the testimonial items and change the active testimonial item every 2 seconds.
  2. If I click on the dot buttons then the testimonial carousel should start the looping interval from there.

What is actually happening: It is working fine for the first condition but I see that there's some delay in the looping interval. And sometimes it completely skips the few items when I try to change the testimonial items using dot buttons.

Here's the link to the project code - codepen

I hope to get your suggestion/solution on this.

Best Regards,

Nitesh

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda