#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; 
  }

.loader {
  width: 120px;
  height: 20px;
  border-radius: 20px;
  background:
   linear-gradient(#C91515 0 0) 0/0% no-repeat
   #fae4e1;
  animation: l2 2s infinite steps(10);
}
@keyframes l2 {
    100% {background-size:110%}
}