.crossfade > figure {
  animation: imageAnimation 40s linear infinite 0s;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center center;
  color: transparent;
  height: 100%;
  left: 0px;
  opacity: 0;
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 0;
}

.crossfade > figure:nth-child(1) {
  background-image: url('../assets/img/001.jpg');
}
.crossfade > figure:nth-child(2) {
  animation-delay: 4s;
  background-image: url('../assets/img/002.jpg');
}
.crossfade > figure:nth-child(3) {
  animation-delay: 8s;
  background-image: url('../assets/img/003.jpg');
}
.crossfade > figure:nth-child(4) {
  animation-delay: 12s;
  background-image: url('../assets/img/004.jpg');
}
.crossfade > figure:nth-child(5) {
  animation-delay: 16s;
  background-image: url('../assets/img/005.jpg');
}
.crossfade > figure:nth-child(6) {
  animation-delay: 20s;
  background-image: url('../assets/img/006.jpg');
}
.crossfade > figure:nth-child(7) {
  animation-delay: 24s;
  background-image: url('../assets/img/007.jpg');
}
.crossfade > figure:nth-child(8) {
  animation-delay: 28s;
  background-image: url('../assets/img/008.jpg');
}
.crossfade > figure:nth-child(9) {
  animation-delay: 32s;
  background-image: url('../assets/img/009.jpg');
}
.crossfade > figure:nth-child(10) {
  animation-delay: 36s;
  background-image: url('../assets/img/010.jpg');
}
.crossfade > figure:nth-child(11) {
  animation-delay: 40s;
  background-image: url('../assets/img/011.jpg');
}

@media screen and (max-width: 700px) {
  .crossfade > figure:nth-child(1) {
    background-image: url('../assets/img/mobile/001.jpg');
  }
  .crossfade > figure:nth-child(2) {
    animation-delay: 4s;
    background-image: url('../assets/img/mobile/002.jpg');
  }
  .crossfade > figure:nth-child(3) {
    animation-delay: 8s;
    background-image: url('../assets/img/mobile/003.jpg');
  }
  .crossfade > figure:nth-child(4) {
    animation-delay: 12s;
    background-image: url('../assets/img/mobile/004.jpg');
  }
  .crossfade > figure:nth-child(5) {
    animation-delay: 16s;
    background-image: url('../assets/img/mobile/005.jpg');
  }
  .crossfade > figure:nth-child(6) {
    animation-delay: 20s;
    background-image: url('../assets/img/mobile/006.jpg');
  }
  .crossfade > figure:nth-child(7) {
    animation-delay: 24s;
    background-image: url('../assets/img/mobile/007.jpg');
  }
  .crossfade > figure:nth-child(8) {
    animation-delay: 28s;
    background-image: url('../assets/img/mobile/008.jpg');
  }
  .crossfade > figure:nth-child(9) {
    animation-delay: 32s;
    background-image: url('../assets/img/mobile/009.jpg');
  }
  .crossfade > figure:nth-child(10) {
    animation-delay: 36s;
    background-image: url('../assets/img/mobile/010.jpg');
  }
  .crossfade > figure:nth-child(11) {
    animation-delay: 40s;
    background-image: url('../assets/img/mobile/011.jpg');
  }
}
@keyframes imageAnimation {
  0% {
    animation-timing-function: ease-in;
    opacity: 0;
  }
  8% {
    animation-timing-function: ease-out;
    opacity: 1;
  }
  17% {
    opacity: 1
  }
  25% {
    opacity: 0
  }
  100% {
    opacity: 0
  }
}
