<ul> <li> <div class="loader"> <div class="child"></div> </div> </li> <li> <div class="text"></div> </li> </ul>
.loader { width: 100px; height: 3px; background-color: rgb(15, 15, 15); border-radius: 20px; overflow: hidden; } .child { width: 60px; height: 3px; background-color: rgb(107, 27, 255);