**Note: I Didn’t create this account to sell, or promote anything. I simply want to make my online products run as well as I can.
I’ve spent lots of time wanting to get the mobile menu to auto shut when smooth scrolling. The dropdown menu auto shuts. However, I want the mobile parent menu to also auto shut. The About link is active for testing.
Thanks!
This JS that I posted over a day ago looks like a logical solution. I also tested this script with (main-menu), and (menu-item). Possibly this script can be altered a bit. Anybody on here can test this on the Code Pen pen that I have linked to in this thread. :–)
<script>
$('.toggle-button a').each(function(){
$(this)slideUp( {
duration: 300,
complete: function () {
$(this).removeClass( 'toggle-button a' );
}
});
});
</script>
Okay, Thanks! Possibly Bootstrap is required to auto close the mobile toggle when smooth scrolling a page. However, I Don’t want to depend on Bootstrap.
Is there any way to auto close a mobile toggle menu when using one page auto scroll templates, without needing to use Bootstrap? Something tells me that at least one member on here knows my solution! Thanks!
Still nobody on here that knows how I can get the mobile toggle to auto shut Without using Bootstrap? At least one JS expert should be able to have a solution!