Thanks for the reply, this is basically what you sent.
I only had to make two changes
custom.css
#header nav ul.nav-main li.dropdown > a {
border-top-width: 4px !important;
}
#header nav ul.nav-main li.dropdown:hover > a {
margin-bottom: 0 !important;
}
custom.js
$(document).click(function(){
$('#header .mega-menu-item .dropdown-toggle').parent().removeClass('opened');
});
$('#header .mega-menu-item .dropdown-toggle').parent().click(function(e){
e.stopPropagation();
});
$('#header .mega-menu-item .dropdown-toggle').on('click', function() {
$(this).parent().toggleClass('opened');
});
Is there a better way for me to do this?
For all I did was:
- Fix the edge of the menu, when you pass the mouse over the menu, it gives a “bounced” up and down
- Changed mega menu to close when click away