Progress Bar Animate

by Recouse

HTML

<div class="container">
    <div class="bar"></div>
</div>

CSS

body {
    background: url(http://subtlepatterns.com/patterns/stardust.png);
}
.container {
    background: #999;
    width: 300px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 7px;
    margin: 40px;
    -webkit-box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
    -moz-box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
    -o-box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.bar {
    width: 600px;
    height: 40px;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .9) 4px, transparent 4px, transparent 10px);
    animation: progress 5s linear infinite
    -webkit-animation: progress 5s linear infinite
}
@keyframes progress {
    0% {
        margin-left: 0;
    }
    100% {
        margin-left: -100%;
    }
}

@-webkit-keyframes progress {
    0% {
        margin-left: 0;
    }
    100% {
        margin-left: -100%;
    }
}