I am in the process of developing a website that is optimized for both mobile and desktop devices. I am currently brainstorming ideas for the main navigation, which I envision as an overlay that slides down similar to .
However, I am struggling to create this overlay effect. So far, all I have achieved is having a section of the page slide down when the menu button is clicked, which is not quite what I had in mind.
This is the syntax of the menu:
<div id="navContainer">
<div id="topNav">
<div class="top">
<div class="heading">
<div id="logo">LOGO</div>
</div>
<a href="#" class="menu">MENU</a>
</div>
</div>
</div>
<div class="drawer">
<nav>
<ul class="nav nav-tabs nav-stacked">
<li><a href="#">Menu Item</a></li>
<li><a href="#">Menu Item</a></li>
<li><a href="#">Menu Item</a></li>
<li><a href="#">Menu Item</a></li>
<li><a href="#">Menu Item</a></li>
</ul>
</nav>
</div>
The functionality of the menu is similar to this example: http://jsfiddle.net/RFpDJ/1/, but I am looking for it to overlay the content rather than push it down.
Any suggestions or solutions?