Created
March 29, 2019 11:59
-
-
Save jon-grangien/43aefa5363541800da5c36bc121a7f80 to your computer and use it in GitHub Desktop.
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
.element { | |
max-height: 5000px; /* super high just to have something */ | |
opacity: 1; | |
transition: max-height 1s ease-in-out, opacity 0.5s ease-in-out; | |
} | |
.element.hidden { | |
visibility: hidden; | |
max-height: 0px; | |
opacity: 0; | |
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease-in-out; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment