
.slider {
  width: 400px;
  height: 300px;
}

.wrapper {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#items {
  width: calc(100000px * 1000000);
  position: relative;
  top: 0;
  left: -400px;
}

#items.shifting {
  transition: left .2s ease-out;
}

.slide {
  width: 400px;
  height: 300px;
  cursor: pointer;
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 1s;
  position: relative;
  /* background: #fff; */
  text-align: center;
}

.slider.loaded span:nth-child(2),
.slider.loaded span:nth-child(7) {
  background: #FFCF47;
}
.slider.loaded span:nth-child(1),
.slider.loaded span:nth-child(6) {
  background: #7ADCEF;
}
.slider.loaded span:nth-child(3) {
  background: #F97C68;
}
.slider.loaded span:nth-child(4) {
  background: #a78df5;
}
.slider.loaded span:nth-child(5) {
  background: #ff8686;
}

.control {
  border-radius: 20px;
  z-index: 2;
  /*margin: 0 10px;*/
  font-size: 22px;
  cursor: pointer;
}

/* .prev {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronLeft-512.png);
  left: -20px;
}

.next {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronRight-512.png);
  right: -20px;
} */

.prev:active,
.next:active {
  transform: scale(0.8);
}
