Hi,
I need a small help in navigation
This is my project, Here i have one issue with navigation, when scroll down the page navigation is closing, then i open the navigation and again i’m scrolling the page the navigation still open, its not closing automatically, here i need to close the navigation when i scroll, how can i do this,
i tried my own code for this function, but when i add this, navigation will open only in double click
$(window).on("scroll", function(){ var scrollTop=$(window).scrollTop(); var winWidith=$(window).width(); if((scrollTop>130) && (winWidith >768)){ $('.nav-thumbnail').css({'transition': 'transform 500ms ease 0s', 'transform': 'translateX(48px) translateY(0px)'}); $('.nav-main-container').css("transform","translateX(-100vw) translateY(0px)"); } })
can you please check & let me know how i can fix this issue, it little urgent
Thanks
Anu