.kuai {
  width: 510px;
  margin-top: 10px;
  border-radius: 10px;
  background: #dcd5d5;
}
.warning {
  height: 5px;
  position: relative;
  background-color: #dc8a91;
  border-radius: 10px 0 0 10px;
  background-size: 3em 3em;
  background-image: linear-gradient(-45deg, transparent 0em, transparent 0.8em, #de1b2a 0.9em, #de1b2a 2.1em, transparent 2.1em, transparent 2.9em, #de1b2a 3.1em);
  -webkit-animation: warning-animation 750ms infinite linear;
  -moz-animation: warning-animation 750ms infinite linear;
  animation: warning-animation 750ms infinite linear;
}
@-webkit-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
@-moz-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
@keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
.warning:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 10px;
  background-image: linear-gradient(to bottom, #de1b2a, rgba(222, 27, 42, 0.6) 15%, transparent 60%, #de1b2a);
}
.countup1 .kuai .warning {
  width: 190px;
}
.countup2 .kuai .warning {
  width: 300px;
}
.countup3 .kuai .warning {
  width: 210px;
}
.countup4 .kuai .warning {
  width: 210px;
}