Skip to content

Instantly share code, notes, and snippets.

@joeyw
Created July 14, 2012 23:21
Show Gist options
  • Save joeyw/3113844 to your computer and use it in GitHub Desktop.
Save joeyw/3113844 to your computer and use it in GitHub Desktop.
Untitled
.container {
transform: rotate(0deg);
width: 600px;
height: 600px;
}
.container:hover {
-webkit-animation: rotator 2s;
}
.circle {
width: 300px;
height: 300px;
background: #000;
border-radius: 150px;
}
.secondary {
margin: -200px 40px;
background: #fff;
}
.photo {
width: 300px;
height:300px;
border: 1px solid #000;
margin-top: -600px;
margin-left: 0px;
border-radius: 200px;
background: #09f;
}
@-webkit-keyframes rotator {
0% {
transform: rotate(0deg);
}
50% { transform: rotate(90deg);
}
100% {
transform: rotate(0deg);
}
}
<div class="container">
<div class="circle"></div>
<div class="circle secondary"></div>
</div>
<div class="photo"></div>
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment