html, body {
  margin: 0;
  padding: 0;
  background-color: black;
}

.container {
    position: relative;
    width: 400px;
    margin: 50px auto 0 auto;
    perspective: 1500px;
  }

.pic-ctn {
  width: 100%;
  height: 100%;
}

@keyframes display {
    0% {
      transform: translateX(150px);
      opacity: 0;
    }
    10% {
      transform: translateX(0px);
      opacity: 1;
    }
    20% {
      transform: translateX(-150px);
      opacity: 0;
    }
    30% {
        transform: translateX(-0px);
        opacity: 0;
      }
    40% {
        transform: translateX(0px);
        opacity: 0;
      }
    50% {
        transform: translateX(0px);
        opacity: 0;
      }
    60% {
        transform: translateX(0px);
        opacity: 0;
      }
    100% {
      transform: translateX(-150px);
      opacity: 0;
    }
  }

.pic-ctn {
  position: absolute;
  width: 100%;
  height: 100%;
  margin-top: 15vh;
}

.pic-ctn > img {
  position: absolute;
  top: 0;
  left: calc(60% - 100px);
  opacity: 0;
  animation: display 24s infinite;
}

img:nth-child(2) {
  animation-delay: 2s;
}
img:nth-child(3) {
  animation-delay: 4s;
}
img:nth-child(4) {
  animation-delay: 6s;
}
img:nth-child(5) {
  animation-delay: 8s;
}
img:nth-child(6) {
    animation-delay: 10s;
}
img:nth-child(7) {
    animation-delay: 12s;
}
img:nth-child(8) {
    animation-delay: 14s;
}
img:nth-child(9) {
    animation-delay: 16s;
}
img:nth-child(10) {
    animation-delay: 18s;
}
img:nth-child(11) {
    animation-delay: 20s;
}
img:nth-child(12) {
    animation-delay: 22s;
}