Skip to content

Instantly share code, notes, and snippets.

@EduVencovsky
Created May 22, 2019 15:41
Show Gist options
  • Save EduVencovsky/19189e1829bbdedcd8c557028710ff62 to your computer and use it in GitHub Desktop.
Save EduVencovsky/19189e1829bbdedcd8c557028710ff62 to your computer and use it in GitHub Desktop.
CSS for making ul and li open and close (dropdown menu)
.li {
max-height: 0px;
transition: max-height 0.35s ease-out;
}
.ul {
overflow: hidden;
}
.ul.opened .li {
max-height: 50px;
transition: max-height 0.35s ease-in;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment