Created
April 5, 2012 19:03
-
-
Save gossi/2313264 to your computer and use it in GitHub Desktop.
CSS Animations (auto values)
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
/** | |
* CSS Animations (auto values) | |
*/ | |
#anim { | |
border: 1px solid; | |
padding: 3px; | |
background-color: green; | |
color: white; | |
width: auto; | |
transition: width 1s; | |
} | |
#anim:hover { | |
width: 50%; | |
} |
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 id="anim"> | |
animate to auto values | |
</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