When the main menu is hovered over, a sub-menu appears and the content below the main menu slides down. Check out the code snippet below:
HTML:
<div id="holderDiv">
<div id="menu">
<a href="#" id="items">Menu 1</a>
</div>
<div id="submenu" style="height:100px;background:green;">
<a href="#">Sub Menu 1</a>
<a href="#">Sub Menu 2</a>
<a href="#">Sub Menu 3</a>
</div>
</div>
<div style="height:500px;background:red;text-align:center">Content</div>
Javascript:
$("#submenu").hide();
$("#menu").on('mouseover', function () {
$("#submenu").slideDown(500);
});
$("#holderDiv").on('mouseleave', function () {
$("#submenu").slideUp(500);
});
Check it out on jsfiddle : http://jsfiddle.net/YKKrM/1/