Skip to content

Instantly share code, notes, and snippets.

@jon-grangien
Created March 29, 2019 11:59
Show Gist options
  • Save jon-grangien/43aefa5363541800da5c36bc121a7f80 to your computer and use it in GitHub Desktop.
Save jon-grangien/43aefa5363541800da5c36bc121a7f80 to your computer and use it in GitHub Desktop.
.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