Created
April 21, 2017 18:47
-
-
Save RocketFever22/5c4c4de641dee62ccb9605c1a06911b3 to your computer and use it in GitHub Desktop.
Animate height to 100% of content
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
.section { | |
overflow:hidden; | |
height:auto; | |
transition:max-height 0.3s ease-out; // max-height animation | |
max-height:100px; // still have to hard-code a value | |
} | |
.section.collapsed { | |
max-height: 600px; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment