body {
  background: rgb(73, 73, 73);
  color: #0fad76;
}
.box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.title {
  font-size: 30px;
}
.subtitle {
  font-size: 15px;
}
.box > div {
  position: relative;
}
.cover {
  position: absolute;
  display: block;
  width:0;
  height: 100%;
  background: #0fad76;
  top: 0;
  left: 100%;
  animation: box-enter;
  animation-duration: 5s;
}
.text {
  animation: text-enter;
  animation-duration: 3s;
}
.subtitle > .text {
  animation: text-enter2;
  animation-duration: 6s;
}
.subtitle > .cover {
  animation: box-enter2;
  animation-duration: 6s;
  background: #313131;
}
@keyframes text-enter {
  0% { opacity: 0}
  40% { opacity: 0}
  60% { opacity: 1}
  100% {opacity:1 }
}
@keyframes box-enter {
  0% { width: 0%; left: 0}
  40% { width: 100%; left: 0}
  60% { width: 100%; left: 0}
  100% {width: 0; left: 100% }
}

@keyframes text-enter2 {
  0% { opacity: 0}
  50% { opacity: 0}
  70% { opacity: 0}
  80% { opacity: 1}
  100% {opacity:1 }
}
@keyframes box-enter2 {
  0% { width: 0%; left: 0}
  50% { width: 0%; left: 0}
  70% { width: 100%; left: 0}
  80% { width: 100%; left: 0}
  100% {width: 0; left: 100% }
}