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

138
Views
How to wrap this slideshow to the first image?

Does anyone know of a way to wrap the images in this slideshow to the beginning, so that the blue square comes immediately after the black square?

https://jsfiddle.net/pgLf2z8u/1/

Right now, the best I know how to do is:

img {
  height: 80vh;
}

#carousel {
  white-space: nowrap;
  overflow-x: hidden;
}

#carousel > img {
  animation-name: slide;
  animation-timing-function: linear;
  animation-delay: infinite;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

@keyframes slide{
  to{
    transform: translateX(-900px);
  }
}

I've seen suggestions about duplicating the first few images and timing/setting delays so that it seems seamless. Any advice on how to accomplish this with css, javascript, react, or jquery is welcome (or by any other means)!

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!