Reputation: 423
I'm not entirely sure if it's possible. But I'm trying to remove the grey area of this progress bar:
progress, progress[role] {
border: none;
background-size: auto;
height: 24px;
background-color: green;
width: 100%;
}
.skill-list {
list-style: none;
margin: 0;
padding: 1em;
}
.skill {
margin-bottom: 1em;
position: relative;
}
.skill h5 {
color: #fff;
left: 1em;
line-height: 1;
position: absolute;
top: -10px;
text-transform: uppercase;
}
.skill ::-webkit-progress-value {
-webkit-animation: bar-fill 2s;
width: 0px;
}
.skill-1::-webkit-progress-value {
background: #ff9e2c;
border-radius: 5px;
}
.skill-1::-moz-progress-bar {
background: #ff9e2c;
border-radius: 5px;
}
.skill-2::-webkit-progress-value {
background: #4ecdc4;
border-radius: 5px;
}
.skill-2::-moz-progress-bar {
background: #4ecdc4;
}
.skill-3::-webkit-progress-value {
background: #ff6b6b;
border-radius: 5px;
}
.skill-3::-moz-progress-bar {
background: #ff6b6b;
border-radius: 5px;
}
@-webkit-keyframes bar-fill {
0% {
width: 50px;
}
}
@keyframes bar-fill {
0% {
width: 50px;
}
}
Is it possible?
Upvotes: 0
Views: 1475
Reputation: 587
Just add these:
progress[value]::-webkit-progress-bar {
background-color: #FFF;
}
progress::-moz-progress-bar {
background: #FFF;
}
Example: http://jsfiddle.net/WQ7ch/1/
Upvotes: 2