* {
  padding: 0;
  margin: 0
}

.crossfade > figure {
	animation: imageAnimation 30s linear infinite 0s;
  backface-visibility: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  color: transparent;
width: 100%;
height: 100%;
  left: 0px;
  opacity: 0;
  position: absolute;
  
  top: 0;
  
  border: 1px solid red;
  z-index: 0;
}
/*
@media screen and (max-width: 1680px) {
	.crossfade > figure {
		
		margin-top: -120px;
	}
}

@media screen and (max-width: 1280px) {
	.crossfade > figure {
		
		margin-top: -130px;
	}
}

@media screen and (max-width: 980px) {
	.crossfade > figure {
		
		margin-top: -150px;
	}
}

@media screen and (max-width: 736px) {
	.crossfade > figure {
		
		top: -250px;
	}
}
*/
.crossfade > figure:nth-child(1) {
  background-image: url("../../images/banner1.jpg");
}
.crossfade > figure:nth-child(2) {
  animation-delay: 6s;
  background-image: url("../../images/banner2.jpg");
}
.crossfade > figure:nth-child(3) {
  animation-delay: 12s;
  background-image: url("../../images/banner3.jpg");
}
.crossfade > figure:nth-child(4) {
  animation-delay: 18s;
  background-image: url("../../images/banner4.jpg");
}
.crossfade > figure:nth-child(5) {
  animation-delay: 24s;
  background-image: url("../../images/banner5.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
  }
}
