Created
May 22, 2019 15:41
-
-
Save EduVencovsky/19189e1829bbdedcd8c557028710ff62 to your computer and use it in GitHub Desktop.
CSS for making ul and li open and close (dropdown menu)
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
| .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