.bookshelf_wrapper {
  position: relative;
  top: 60%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.books_list {
  margin: 0 auto;
  width: 150px;
  padding: 0;
}

.book_item {
  position: absolute;
  top: -60px;
  box-sizing: border-box;
  list-style: none;
  width: 20px;
  height: 60px;
  opacity: 0;
  background-color: #1e6cc7;
  border: 3px solid white;
  -webkit-transform-origin: bottom left;
          transform-origin: bottom left;
  -webkit-transform: translateX(150px);
          transform: translateX(150px);
  -webkit-animation: travel 2500ms linear infinite;
          animation: travel 2500ms linear infinite;
}
.book_item.first {
  top: -70px;
  height: 70px;
}
.book_item.first:before, .book_item.first:after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
}
.book_item.first:after {
  top: initial;
  bottom: 5px;
}
.book_item.second:before, .book_item.second:after, .book_item.fifth:before, .book_item.fifth:after {
  box-sizing: border-box;
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 4.5px;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
}
.book_item.second:after, .book_item.fifth:after {
  top: initial;
  bottom: 5px;
}
.book_item.third:before, .book_item.third:after {
  box-sizing: border-box;
  content: '';
  position: absolute;
  top: 5px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 3px solid white;
}
.book_item.third:after {
  top: initial;
  bottom: 5px;
}
.book_item.fourth {
  top: -65px;
  height: 65px;
}
.book_item.fourth:before {
  box-sizing: border-box;
  content: '';
  position: absolute;
  top: 23px;
  left: 0;
  width: 100%;
  height: 4.5px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}
.book_item.fifth {
  top: -50px;
  height: 50px;
}
.book_item.sixth {
  top: -70px;
  height: 70px;
}
.book_item.sixth:before {
  box-sizing: border-box;
  content: '';
  position: absolute;
  bottom: 15px;
  left: 0px;
  width: 100%;
  height: 3px;
  background-color: white;
}
.book_item.sixth:after {
  box-sizing: border-box;
  content: '';
  position: absolute;
  bottom: 5px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 3px solid white;
}
.book_item:nth-child(2) {
  -webkit-animation-delay: 416.66667ms;
          animation-delay: 416.66667ms;
}
.book_item:nth-child(3) {
  -webkit-animation-delay: 833.33333ms;
          animation-delay: 833.33333ms;
}
.book_item:nth-child(4) {
  -webkit-animation-delay: 1250ms;
          animation-delay: 1250ms;
}
.book_item:nth-child(5) {
  -webkit-animation-delay: 1666.66667ms;
          animation-delay: 1666.66667ms;
}
.book_item:nth-child(6) {
  -webkit-animation-delay: 2083.33333ms;
          animation-delay: 2083.33333ms;
}

.shelf {
  width: 150px;
  height: 5px;
  margin: 0 auto;
  background-color: white;
  position: relative;
}
.shelf:before, .shelf:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1e6cc7;
  background-image: -webkit-radial-gradient(rgba(255, 255, 255, 0.5) 30%, rgba(0, 0, 0, 0) 0%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 30%, rgba(0, 0, 0, 0) 0%);
  background-size: 10px 10px;
  background-position: 0 -2.5px;
  top: 200%;
  left: 5%;
  -webkit-animation: move 250ms linear infinite;
          animation: move 250ms linear infinite;
}
.shelf:after {
  top: 400%;
  left: 7.5%;
}

@-webkit-keyframes move {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 10px;
  }
}

@keyframes move {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 10px;
  }
}
@-webkit-keyframes travel {
  0% {
    opacity: 0;
    -webkit-transform: translateX(150px) rotateZ(0deg) scaleY(1);
            transform: translateX(150px) rotateZ(0deg) scaleY(1);
  }
  6.5% {
    -webkit-transform: translateX(140px) rotateZ(0deg) scaleY(1.1);
            transform: translateX(140px) rotateZ(0deg) scaleY(1.1);
  }
  8.8% {
    -webkit-transform: translateX(140px) rotateZ(0deg) scaleY(1);
            transform: translateX(140px) rotateZ(0deg) scaleY(1);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateX(135px) rotateZ(0deg);
            transform: translateX(135px) rotateZ(0deg);
  }
  17.6% {
    -webkit-transform: translateX(124px) rotateZ(-30deg);
            transform: translateX(124px) rotateZ(-30deg);
  }
  45% {
    -webkit-transform: translateX(80px) rotateZ(-30deg);
            transform: translateX(80px) rotateZ(-30deg);
  }
  49.5% {
    -webkit-transform: translateX(71px) rotateZ(-45deg);
            transform: translateX(71px) rotateZ(-45deg);
  }
  61.5% {
    -webkit-transform: translateX(58px) rotateZ(-45deg);
            transform: translateX(58px) rotateZ(-45deg);
  }
  67% {
    -webkit-transform: translateX(50px) rotateZ(-60deg);
            transform: translateX(50px) rotateZ(-60deg);
  }
  76% {
    -webkit-transform: translateX(36px) rotateZ(-60deg);
            transform: translateX(36px) rotateZ(-60deg);
  }
  83.5% {
    opacity: 1;
    -webkit-transform: translateX(25px) rotateZ(-90deg);
            transform: translateX(25px) rotateZ(-90deg);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(0px) rotateZ(-90deg);
            transform: translateX(0px) rotateZ(-90deg);
  }
}
@keyframes travel {
  0% {
    opacity: 0;
    -webkit-transform: translateX(150px) rotateZ(0deg) scaleY(1);
            transform: translateX(150px) rotateZ(0deg) scaleY(1);
  }
  6.5% {
    -webkit-transform: translateX(140px) rotateZ(0deg) scaleY(1.1);
            transform: translateX(140px) rotateZ(0deg) scaleY(1.1);
  }
  8.8% {
    -webkit-transform: translateX(137px) rotateZ(0deg) scaleY(1);
            transform: translateX(137px) rotateZ(0deg) scaleY(1);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateX(135px) rotateZ(0deg);
            transform: translateX(135px) rotateZ(0deg);
  }
  17.6% {
    -webkit-transform: translateX(124px) rotateZ(-30deg);
            transform: translateX(124px) rotateZ(-30deg);
  }
  45% {
    -webkit-transform: translateX(82.5px) rotateZ(-30deg);
            transform: translateX(82.5px) rotateZ(-30deg);
  }
  49.5% {
    -webkit-transform: translateX(76px) rotateZ(-45deg);
            transform: translateX(76px) rotateZ(-45deg);
  }
  61.5% {
    -webkit-transform: translateX(58px) rotateZ(-45deg);
            transform: translateX(58px) rotateZ(-45deg);
  }
  67% {
    -webkit-transform: translateX(50px) rotateZ(-60deg);
            transform: translateX(50px) rotateZ(-60deg);
  }
  76% {
    -webkit-transform: translateX(36px) rotateZ(-60deg);
            transform: translateX(36px) rotateZ(-60deg);
  }
  83.5% {
    opacity: 1;
    -webkit-transform: translateX(25px) rotateZ(-90deg);
            transform: translateX(25px) rotateZ(-90deg);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(0px) rotateZ(-90deg);
            transform: translateX(0px) rotateZ(-90deg);
  }
}