When the hamburger menu is pressed on smaller screens, I want my navbar to cover the entire screen.
To achieve this, I included the .push
class in my code (see the jQuery and CSS) to trigger when the .navbar-toggle-icon
is pushed.
However, after implementing the function to fire the .push
class, I encountered an issue where the full-screen navbar feature on mobile devices stopped working. Additionally, the jQuery script responsible for making the navbar sticky upon scrolling also ceased to function.
I've spent most of the day trying to troubleshoot this problem without success. Can someone please assist me with resolving this issue?
For reference, here is a link to the code on JSFiddle.