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

137
Views
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
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!