I'm having this error on my website. I have code to my menu disappear when I'm entering a certain page and to the menu appear after scrolling down a little bit. Everything is working if I use always the buttons on the website, but if I hit my browser's back button the menu has an error. I believe is because of the code of the page. I have images to show you.
Fixed menu at top, bottom and sides of page
Selecting the "works" button (everything normal)
Selecting a project, code says to hide the menu and appears only after scrolling down (normal)
Now if I hit the back button of my browser instead of hitting "works" button to chose another project, some parts of the menu disappear, and sometimes all the menu disappears.
Here's an image of the code I'm using to hide the menu (I have containers and buttons). "faixa" is the strip that appears first on project page
How do I fix this error?