Created
April 22, 2012 18:11
-
-
Save valhead/2465836 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; | |
transition: all 2s ease-in-out; | |
} | |
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