Created
November 19, 2012 07:03
-
-
Save benjaminfisher/4109339 to your computer and use it in GitHub Desktop.
CSS Progress Bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.progress | |
div.inner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.progress{ | |
background: -webkit-linear-gradient( | |
left, | |
#f23030 0%, | |
#ffef19 40%, | |
#ffef19 60%, | |
#35e500 100%); | |
border:1px solid black; | |
border-radius:3px; | |
height:30px; | |
margin:20px; | |
position:relative; | |
width:500px; | |
.inner{ | |
background:ghostwhite; | |
border-radius:3px; | |
float:right; | |
margin:0px; | |
padding:0px; | |
position:relative; | |
right:0px; | |
height:100%; | |
width:0%; | |
-webkit-animation:fill 3s linear; | |
} | |
} | |
@-webkit-keyframes fill{ | |
from{ | |
width:100%; | |
} | |
to{ | |
width:0%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Progress bar written in Jade and SCSS. Only works in Chrome due to lack of good cross browser support for key frames.