Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created March 27, 2012 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jakearchibald/2214045 to your computer and use it in GitHub Desktop.
Save jakearchibald/2214045 to your computer and use it in GitHub Desktop.
Untitled
.test, .test2 {
width: 200px;
height: 200px;
background: green;
border-radius: 500px;
position: relative;
transition: all 2s linear;
left: 0;
margin: 0 0 10px;
}
.test2 {
transform: rotate(0.0001deg);
}
.test2:hover {
transform: translate(20px, 0) rotate(0.0001deg);
}
.test:hover {
transform: translate(20px, 0);
}
<div class="test"></div>
<div class="test2"></div>
Hover over each circle. The first transitions 'translate', the second transitions 'translate' and a small 'rotate'.
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment