Skip to content

Instantly share code, notes, and snippets.

@ddprrt
Created July 10, 2012 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddprrt/3083555 to your computer and use it in GitHub Desktop.
Save ddprrt/3083555 to your computer and use it in GitHub Desktop.
Untitled
.pie {
width: 200px;
height: 200px;
border-radius: 50%;
background-color: black;
border: 5px solid white;
position: relative;
}
.pie:before,
.pie:after {
width: 202px;
height: 202px;
border-radius: 50%;
background-color: white;
position: absolute;
top: -1px;
left: -1px;
display: block;
content: '';
clip: rect(0, 101px, 202px, 0);
}
@keyframes piebefore {
0% { rotate(-180deg)}
50% { rotate(0deg) }
100% { rotate(180deg)}
}
.pie:before {
transform: rotate(-180deg);
animation: piebefore;
}
body {
background-color: black;
}
<div class="pie">&nbsp;</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment