Skip to content

Instantly share code, notes, and snippets.

@valhead
Created April 22, 2012 23:16
Show Gist options
  • Save valhead/2467455 to your computer and use it in GitHub Desktop.
Save valhead/2467455 to your computer and use it in GitHub Desktop.
Basic animation
/**
* Basic animation
*/
body {
background:#333;
}
.anim {
animation-name: rotate;
animation-duration:4s;
animation-iteration-count: 1;
transform-origin: 50% 0px;
transition-timing-function: linear;
}
div {
width:200px;
height:100px;
background:#ff00ff;
margin:10em 4em;
}
div:hover {
transform: translate(50px,0px);
}
<!-- content to be placed inside <body>…</body> -->
<div></div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment