Podpowiadam skrypt z dokumentacją do slide-toogle-down menu. Do przekształcenia na użytek własny - baw się ;)
$(document).ready(function() //when the document is ready load the function
{
$( ".hamburgerMenu_open" ).click(function() //if object with class "..." is clicked
{
$( ".menu_position" ).slideToggle( 200, function() //in 200 miliseconds (fast) toogle element with class "..."
{
$( ".hamburgerMenu_open" ).hide(); //set to element with class "..." style property "overflow: hidden"
$( ".hamburgerMenu_close" ).show(); //set to element with class "..." style property "overflow: visible"
});
});
$( ".hamburgerMenu_close" ).click(function() //if object with class "..." is clicked
{
$( ".menu_position" ).slideToggle( 200, function() //in 200 miliseconds (fast) toogle element with class "..."
{
$( ".hamburgerMenu_close" ).hide(); //set to element with class "..." style property "overflow: hidden"
$( ".hamburgerMenu_open" ).show(); //set to element with class "..." style property "overflow: visible"
});
});
});