Context
The navbar on the mobile version of this website is opened on the first click of a burger-icon, which triggers the “open menu” animation and closed on the second click, which triggers the “close menu” animation. These animations are doing very specific things, but most importantly show/hide the menu.
The problem
I have a link (tjenester) that links to a section on the homepage which makes the nav remain open on that page, since the page is not reloaded on click.
Here is what I’ve tried so far:
- I attached the “close menu” animation to the link itself, but this did nothing.
- I tried to wrap the link in a div and put the interaction on that instead, which made the nav nudge a little bit.
- I made a red square inside the nav and attached the interaction to it and got the same result as the one above.
- I moved the the red square outside of the nav with the interaction still attached to it, which made the nav hide, but the burger-icon remains an “x”.
I’m feeling very much confused. Anyone have any ideas of what is going on or how to work around this?
Here is my public share link: LINK
(how to access public share link)