Skip to content

Instantly share code, notes, and snippets.

@i2r
Created February 9, 2012 05:44
Show Gist options
  • Select an option

  • Save i2r/1777663 to your computer and use it in GitHub Desktop.

Select an option

Save i2r/1777663 to your computer and use it in GitHub Desktop.
Lea's post test-case
/**
* Lea's post test-case
*/
.a, .b {
position: absolute;
left: 50%;
top: 50%;
width: 50px;
height: 50px;
margin: -25px 0 0 -25px;
}
.a {
background: #333;
animation:rotate 5s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg)
translate(100px)
rotate(0deg);
}
to {
transform: rotate(360deg)
translate(100px)
rotate(-360deg);
}
}
.b {
background: #f00;
transform: rotate(0)
translate(200px)
rotate(0);
transition: transform 2s linear;
}
.b:hover {
transform: rotate(360deg)
translate(200px)
rotate(-360deg);
}
<div class="a"></div>
<div class="b"></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