body {
padding: 50px;
}
.progress-bg {
margin: 0 auto;
width: 65%;
height: 78px;
border-radius: 10px;
text-align: center;
background: url("http://www.atsu.edu/stlclinic/images/progress-bar-bg.jpg") repeat;
-moz-box-shadow: inset 0 0 10px #ccc;
-webkit-box-shadow: inset 0 0 10px #ccc;
box-shadow: inset 0 0 10px #ccc;
}
.progress-bar {
height: 78px;
border-radius: 10px;
float: left;
width: 50%;
background-color: #1c314a;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#1c314a), to(#27425f));
background: -webkit-linear-gradient(top, #1c314a, #27425f);
background: -moz-linear-gradient(top, #1c314a, #27425f);
background: -ms-linear-gradient(top, #1c314a, #27425f);
background: -o-linear-gradient(top, #1c314a, #27425f);
}
.progress-bg h3.goal, .progress-bg h3.raised {
font-family: Arial,sans-serif;
font-size: 2em;
font-weight: 600;
line-height: 78px;
margin: 0;
padding: 0;
text-align: center;
display: inline;
}
.progress-bg h3.raised {
color: #fff;
margin: 14px 25px 0 50px;
padding: 0 25px 0 0;
}
.progress-bg h3.goal {
color: #b2b2b2;
text-align: center;
}
body .progress-bg h3.raised {
-webkit-animation: fadein 4s;
-moz-animation: fadein 4s;
-ms-animation: fadein 4s;
-o-animation: fadein 4s;
animation: fadein 4s;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-moz-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-ms-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-o-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
.progress-bg h3.goal {
float: right;
display: inline;
padding: 0 25px 0 0;
text-align: center;
}
body .progress-bg div {
-webkit-animation: progress-bar 2s ease forwards;
-moz-animation: progress-bar 2s ease forwards;
-o-animation: progress-bar 2s ease forwards;
animation: progress-bar 2s ease forwards;
}
@-webkit-keyframes progress-bar {
from { width: 0%; }
to { width: 50%; }
}
@-moz-keyframes progress-bar {
from { width: 0%; }
to { width: 50%; }
}
@-o-keyframes progress-bar {
from { width: 0%; }
to { width: 50%; }
}
@keyframes progress-bar {
from { width: 0%; }
to { width: 50%; }
}