Unfinished Carousel

by CJ Juarez

HTML

<!--hovering over the images will pause the slideshow -->

<section class="slideshow">
  <div class="slideshow-container slide">
    <img class="ximg" src="http://placehold.it/350x150"/>
    <img class="ximg" src="http://placehold.it/350x150"/>
  </div>
</section>

CSS

.slideshow {
  width: 625px;
  margin: 0 auto;
  overflow: hidden;
  border: solid 1px white;
}

.slideshow-container {
  width: 2500px;
  transition: 1s ease;
  height: 225px;
}

.ximg {
  width: 625px;
  height: auto;
  display: inline-block;
}

.slide {
  animation: slide 15s ease-out;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
  }
  
  12.5% {
    transform: translateX(0%);
  }
  
  25% {
    transform: translateX(-25%);
  }
  
  37.5% {
    transform: translateX(-25%);
  }
  
  50% {
    transform: translateX(-50%);
  }
  
  62.5% {
    transform: translateX(-50%);
  }
  
  75% {
    transform: translateX(-75%);
  }
  
  87.5% {
    transform: translateX(-75%);
  }
  
  99% {
    transform: translateX(-75%);
  }
  
  100% {
    transform: translateX(0);
  }
}