Created
October 9, 2013 11:38
-
-
Save tomax/6899895 to your computer and use it in GitHub Desktop.
animate height auto stolen from http://jsfiddle.net/leaverou/zwvNY/
This file contains hidden or 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
| /* animate height auto stolen from http://jsfiddle.net/leaverou/zwvNY/ */ | |
| div { | |
| max-height:1.2em; | |
| background:slategray; | |
| color:white; | |
| transition: 1s; | |
| } | |
| div:hover { | |
| max-height:999px; | |
| } |
This file contains hidden or 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> | |
| Hover over me<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| foo bar<br> | |
| </div> |
This file contains hidden or 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
| // alert('Hello world!'); |
This file contains hidden or 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","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