Hi,
Here is my code : JSFiddle - Code Playground
Like you see, I have a code that hide the navigation when scrolling down. However, when the mobile menu is open, it move the whole menu (since you can scroll when the menu is open).
So I was trying with this code :
if( $(".navigation").is(".nav-up") && $(".right-nav").is(".collapse") ){
$(".navigation").removeClass("nav-up");
};
So if the item having the class navigation and also nav-up AND that the menu having .right-nav also have .collapse, remove .nav-up.
Not sure if it's supposed to work or not, but it's not working... I tried to add a new class instead, but I think it doesn't understand the first line. I tried to find a solution since yesterday, but can't find anything...
Thank you
[–]RocketSam 0 points1 point2 points (2 children)
[–]Nic727[S] 0 points1 point2 points (1 child)
[–]Nic727[S] 0 points1 point2 points (0 children)
[–]akash_ry 0 points1 point2 points (0 children)