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; box-shadow: inset 0 0 10px #ccc; 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%; /* fallback */ background-color: #1c314a; /* Safari 4-5, Chrome 1-9 */ background: gradient(linear, 0% 0%, 0% 100%, from(#1c314a), to(#27425f)); /* Safari 5.1, Chrome 10+ */ background: linear-gradient(top, #1c314a, #27425f); /* Firefox 3.6+ */ background: linear-gradient(top, #1c314a, #27425f); /* IE 10 */ background: linear-gradient(top, #1c314a, #27425f); /* Opera 11.10+ */ background: 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 { animation: fadein 4s; /* Safari and Chrome */ animation: fadein 4s; /* Firefox */ animation: fadein 4s; /* Internet Explorer */ animation: fadein 4s; /* Opera */ animation: fadein 4s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Firefox */ @-moz-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Safari and Chrome */ @-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Internet Explorer */ @-ms-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Opera */ @-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 { animation: progress-bar 2s ease forwards; animation: progress-bar 2s ease forwards; 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%; } }