Skip to content

Instantly share code, notes, and snippets.

@shivanarrthine
Created January 21, 2014 13:33
Show Gist options
  • Save shivanarrthine/8540096 to your computer and use it in GitHub Desktop.
Save shivanarrthine/8540096 to your computer and use it in GitHub Desktop.
A Pen by Shiva Narrthine.
<div class="circle">
<div class="fill">
</div>
<h3 class="score">50%</h3>
</div>
var score = $(".score").text();
$(".fill").css("height",score);
.circle{
position: relative;
width: 200px;
height: 200px;
background: #bdc3c7;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
overflow: hidden;
}
.fill{
position: absolute;
bottom: 0;
width: 100%;
height: 80%;
background: #1abc9c;
}
.score{
position: absolute;
width: 100%;
top: 25px;
text-align: center;
font-family: Arial, sans serif;
color: #fff;
font-size: 50pt;
line-height: 0;
font-weight: normal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment