<div class="loader"></div>
.loader { width: 80px; height: 40px; color: #000; border: 2px solid currentColor; border-right-color: transparent; padding: 3px; background: repeating-linear-gradient(90deg,currentColor 0 10px,#0000 0 15px) 0/0% no-repeat content-box content-box; position: relative; animation: l5 2s infinite steps(6); }