Code: Select all
<style>
@keyframes move {
0% {
background-position: 0 0;
}
100% {
background-position: 28px 0;
}
}
</style>
<div style="background-color: #1a1a1a; height: 7px; padding: 2px; width: 200px;"><div style="width: 30%; height: 5px; border: 1px solid maroon; border-radius: 3px; background-image: repeating-linear-gradient(-45deg, red, maroon 11px, red 10px, red 20px); background-size: 18px 18px; animation: move .5s linear infinite;"></div></div>