progress
by jayhilwig
HTML
<div class="progress">
CSS
.progress {
font-size: 20px;
width: 4em;
height: 4em;
border-radius: 50%;
background: #f0aa3c;
background: -moz-linear-gradient(left, #f0aa3c 10%, rgba(240, 170, 60, 0) 60%);
background: -webkit-linear-gradient(left, #f0aa3c 10%, rgba(240, 170, 60, 0) 60%);
background: -o-linear-gradient(left, #f0aa3c 10%, rgba(240, 170, 60, 0) 60%);
background: -ms-linear-gradient(left, #f0aa3c 10%, rgba(240, 170, 60, 0) 60%);
background: linear-gradient(to right, #f0aa3c 10%, rgba(240, 170, 60, 0) 60%);
position: relative;
-webkit-animation: progress3 0.75s infinite linear;
animation: progress3 0.75s infinite linear;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
}
.progress:before {
width: 50%;
height: 50%;
background: #f0aa3c;
border-radius: 100% 0 0 0;
position: absolute;
top: 0;
left: 0;
content: '';
}
.progress:after {
background: #ffffff;
width: 75%;
height: 75%;
border-radius: 50%;
content: '';
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
@-webkit-keyframes progress3 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes progress3 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}