Skip to content

Instantly share code, notes, and snippets.

@benjaminfisher
Created November 19, 2012 07:03
Show Gist options
  • Save benjaminfisher/4109339 to your computer and use it in GitHub Desktop.
Save benjaminfisher/4109339 to your computer and use it in GitHub Desktop.
CSS Progress Bar
div.progress
div.inner
.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%;
}
}
@benjaminfisher
Copy link
Author

Progress bar written in Jade and SCSS. Only works in Chrome due to lack of good cross browser support for key frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment