Skip to content

Instantly share code, notes, and snippets.

@Leikam
Forked from anonymous/dabblet.css
Created May 3, 2013 09:34
Show Gist options
  • Save Leikam/5508202 to your computer and use it in GitHub Desktop.
Save Leikam/5508202 to your computer and use it in GitHub Desktop.
Polymorph
div {
width: 200px;
height: 200px;
margin: auto;
overflow: hidden;
}
#e {
background-color: lightblue;
transform: rotate(-65deg);
animation: rotateCCW 10s linear infinite;
}
#e:hover { background-color: khaki}
#w {
transform: rotate(45deg);
animation: rotateCW 9s linear infinite;
}
#q {
transform: rotate(30deg);
margin-top: 80px
}
@keyframes rotateCW { 100% {transform: rotate(314deg)} }
@keyframes rotateCCW { 100% {transform: rotate(-424deg)} }
<div id='q'>
<div id='w'>
<div id='e'></div>
</div>
</div>
// alert('Hello world!');
{"view":"split","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