Created
May 16, 2012 14:38
-
-
Save valhead/2710842 to your computer and use it in GitHub Desktop.
Basic transition
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 transition | |
*/ | |
body { | |
background:#333; | |
} | |
div { | |
width:200px; | |
height:100px; | |
background:#ff00ff; | |
margin:10em 4em; | |
-webkit-transition: all 1s; | |
} | |
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