<div class="preloaderbar show active"> <span class="bar"></span>
</div>
.preloaderbar {
z-index: 1;
position: absolute;
top: 50px;
left: 0;
right: 0;
height: 4px;
margin-bottom: -4px
}
.preloaderbar .bar {
position: absolute;
width: 100%;
height: 0;
text-indent: -9999px;
background-color: #23b7e5
}
.preloaderbar .bar:before {
position: absolute;
right: 50%;
left: 50%;
height: 4px;
background-color: inherit;
content: ""
}
.preloaderbar.active {
animation: changebar 2.25s infinite 0.75s;
animation: changebar 2.25s infinite 0.75s;
animation: changebar 2.25s infinite 0.75s;
}
.preloaderbar.active .bar {
animation: changebar 2.25s infinite;
animation: changebar 2.25s infinite;
animation: changebar 2.25s infinite;
}
.preloaderbar.active .bar:before {
animation: movingbar 0.75s infinite;
animation: movingbar 0.75s infinite;
animation: movingbar 0.75s infinite
}
@-webkit-keyframes movingbar {
0% {
right: 50%;
left: 50%
}
99.9% {
right: 0;
left: 0
}
100% {
right: 50%;
left: 50%
}
}
@-moz-keyframes movingbar {
0% {
right: 50%;
left: 50%
}
99.9% {
right: 0;
left: 0
}
100% {
right: 50%;
left: 50%
}
}
@keyframes movingbar {
0% {
right: 50%;
left: 50%
}
99.9% {
right: 0;
left: 0
}
100% {
right: 50%;
left: 50%
}
}
@-webkit-keyframes changebar {
0% {
background-color: #8BC34A
}
33.3% {
background-color: #8BC34A
}
33.33% {
background-color: #FFCA28
}
66.6% {
background-color: #FFCA28
}
66.66% {
background-color: #F44336
}
99.9% {
background-color: #F44336
}
}
@-moz-keyframes changebar {
0% {
background-color: #8BC34A
}
33.3% {
background-color: #8BC34A
}
33.33% {
background-color: #FFCA28
}
66.6% {
background-color: #FFCA28
}
66.66% {
background-color: #F44336
}
99.9% {
background-color: #F44336
}
}
@keyframes changebar {
0% {
background-color: #8BC34A
}
33.3% {
background-color: #8BC34A
}
33.33% {
background-color: #FFCA28
}
66.6% {
background-color: #FFCA28
}
66.66% {
background-color: #F44336
}
99.9% {
background-color: #F44336
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.