Created
May 24, 2018 06:45
-
-
Save rrmesquita/40eab815a9899e615ba1aa0c98e6c2b7 to your computer and use it in GitHub Desktop.
Mobile Multi-Level 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
<ul class="nav-menu"> | |
<li class="parent level-0"> | |
<div class="title">LEVEL-0</div> | |
<ul class="submenu"> | |
<li class="item">Link</li> | |
</ul> | |
</li> | |
<li class="parent level-0"> | |
<div class="title">LEVEL-0</div> | |
<ul class="submenu"> | |
<li class="item">Link</li> | |
<li class="parent level-1"> | |
<div class="title">LEVEL-1</div> | |
<ul class="submenu"> | |
<li class="item">Link</li> | |
<li class="parent level-2"> | |
<div class="title">LEVEL-2</div> | |
<ul class="submenu"> | |
<li class="item">Link</li> | |
<li class="parent level-3"> | |
<div class="title">LEVEL-3</div> | |
<ul class="submenu"> | |
<li class="item">Link</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> |
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
jQuery(document).ready(function($) { | |
$('.nav-menu').navall(); | |
}); |
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
.nav-menu{ | |
.parent{ | |
> .submenu{ | |
display: none; | |
} | |
&.active{ | |
> .submenu{ | |
display: block; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment