I feel like I’m missing something really stupid, but I’m having a problem with a basic interaction.
I have simple nav/menu overlay. If you click the hamburger, it turns to an X and the menu overlay displays. Hit the X again and the overlay disappears and the X returns to a hamburger.
However, if you click one of the anchor links on overlay, the overlay disappears (as it should), nav jumps to section (as it should), BUT the X does not return to the hamburger. Instead you need to click the X again to get it to return to that state.
I am using the same interaction for both. Have tried duplicating. Have tried rebuilding.
Tried it. Even tried to duplicate and re-apply. Tried to duplicate original interaction and reverse everything… still no effect at all. I can start a completely new interaction and move stuff around but it doesn’t seem to recognize the “X” starting point.
@jmkriz this is a weird one, you can see the changes occurring in the inspector on the first click, but nothing happens when you click the links. I tried creating an new interaction that just moves the hamburger lines around a little and applied it and it worked. But for some reason I can’t get yours to work, it just doesn’t seem to trigger.
Your sub menu interaction → clicking the submenu menu item and closing it, revealing the section, does not trigger the close of the main menu icon which you opened. All this script does is triggers a click on the main menu element after you click on the link in the menu overlay.
If you modify any classes targeted in the script, you would need to update the script.
I was having the same issue as him, could you take a look at my site and see which classes I need to replace for inside the custom code you wrote? I know that’s probably really simple but I tried swapping out a few different classes and it didn’t work for me.