Created
April 22, 2012 23:16
-
-
Save valhead/2467455 to your computer and use it in GitHub Desktop.
Basic animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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