.wrapper1, .wrapper2, .wrapper3{
  position: relative;
  max-height: 430px;
  background: #333;
  perspective: 600px;
  margin: 100px auto;
}
.wrapper1{
  width: 850px;
  height: 430px;
}
.wrapper2{
  width: 500px;
  height: 300px;
}
.wrapper3{
  width: 360px;
  height: 230px;
}
.box850,
.box500,
.box360 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  box-shadow: 0px 15px 10px #fff;
}
.box850 {
  width: 350px;
  height: 225px;
}
.box500 {
  width: 200px;
  height: 120px;
}
.box360 {
  width: 140px;
  height: 80px;
}
.box850:nth-of-type(1) {
  transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
  z-index: 80;
  animation: box850a 15s ease-in infinite;
}
.box850:nth-of-type(2) {
  transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
  z-index: 90;
  animation: box850b 15s ease-in infinite;
}
.box850:nth-of-type(3) {
  transform: translate3d(-50%, -50%, 0) scale(1.3);
  z-index: 100;
  animation: box850c 15s ease-in infinite;
}
.box850:nth-of-type(4) {
  transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
  z-index: 90;
  animation: box850d 15s ease-in infinite;
}
.box850:nth-of-type(5) {
  transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
  z-index: 80;
  animation: box850e 15s ease-in infinite;
}
img{
  width: 100%;
}

@keyframes box850a {
  3%,
  20% {
    transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
    z-index: 100;
  }
  43%,
  60% {
    transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
    z-index: 80;
  }
}
@keyframes box850b {
  3%,
  20% {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
    z-index: 100;
  }
  23%,
  40% {
    transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
    z-index: 90;
  }
}
@keyframes box850c {
  3%,
  20% {
    transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
    z-index: 100;
  }
}
@keyframes box850d {
  3%,
  20% {
    transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
    z-index: 100;
  }
  83%,
  100% {
    transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
    z-index: 90;
  }
}
@keyframes box850e {
  3%,
  20% {
    transform: translate3d(360px, -50%, -460px) rotate3d(0, 1, 0, -30deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(50px, -50%, -110px) rotate3d(0, 1, 0, -15deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
    z-index: 100;
  }
  63%,
  80% {
    transform: translate3d(-390px, -50%, -110px) rotate3d(0, 1, 0, 15deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-710px, -50%, -460px) rotate3d(0, 1, 0, 30deg);
    z-index: 80;
  }
}

/* 500 */

.box500:nth-of-type(1) {
  transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
  z-index: 80;
  animation: box500a 15s ease-in infinite;
}
.box500:nth-of-type(2) {
  transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
  z-index: 90;
  animation: box500b 15s ease-in infinite;
}
.box500:nth-of-type(3) {
  transform: translate3d(-50%, -50%, 0) scale(1.5);
  z-index: 100;
  animation: box500c 15s ease-in infinite;
}
.box500:nth-of-type(4) {
  transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
  z-index: 90;
  animation: box500d 15s ease-in infinite;
}
.box500:nth-of-type(5) {
  transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
  z-index: 80;
  animation: box500e 15s ease-in infinite;
}
@keyframes box500a {
  3%,
  20% {
    transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  43%,
  60% {
    transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
}
@keyframes box500b {
  3%,
  20% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  23%,
  40% {
    transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
}
@keyframes box500c {
  3%,
  20% {
    transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
}
@keyframes box500d {
  3%,
  20% {
    transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  83%,
  100% {
    transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
}
@keyframes box500e {
  3%,
  20% {
    transform: translate3d(235px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(55px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  63%,
  80% {
    transform: translate3d(-245px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-435px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
}

/* 360 */

.box360:nth-of-type(1) {
  transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
  z-index: 80;
  animation: box360a 15s ease-in infinite;
}
.box360:nth-of-type(2) {
  transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
  z-index: 90;
  animation: box360b 15s ease-in infinite;
}
.box360:nth-of-type(3) {
  transform: translate3d(-50%, -50%, 0) scale(1.5);
  z-index: 100;
  animation: box360c 15s ease-in infinite;
}
.box360:nth-of-type(4) {
  transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
  z-index: 90;
  animation: box360d 15s ease-in infinite;
}
.box360:nth-of-type(5) {
  transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
  z-index: 80;
  animation: box360e 15s ease-in infinite;
}
@keyframes box360a {
  3%,
  20% {
    transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  43%,
  60% {
    transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
}
@keyframes box360b {
  3%,
  20% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  23%,
  40% {
    transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  83%,
  100% {
    transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
}
@keyframes box360c {
  3%,
  20% {
    transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  23%,
  40% {
    transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  63%,
  80% {
    transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
}
@keyframes box360d {
  3%,
  20% {
    transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  43%,
  60% {
    transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  63%,
  80% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  83%,
  100% {
    transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
}
@keyframes box360e {
  3%,
  20% {
    transform: translate3d(170px, -50%, -460px) rotate3d(0, 1, 0, -50deg);
    z-index: 80;
  }
  23%,
  40% {
    transform: translate3d(35px, -50%, -110px) rotate3d(0, 1, 0, -45deg);
    z-index: 90;
  }
  43%,
  60% {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
    z-index: 100;
  }
  63%,
  80% {
    transform: translate3d(-175px, -50%, -110px) rotate3d(0, 1, 0, 45deg);
    z-index: 90;
  }
  83%,
  100% {
    transform: translate3d(-310px, -50%, -460px) rotate3d(0, 1, 0, 50deg);
    z-index: 80;
  }
}
