Hey y’all, been a while since I’ve been in the designer, and struggling with a custom menu interaction.
I need the
top nav menu to close on scroll and clicking outside of the menu. I thought I could accomplish that with the native interactions, but am I mistaken?
Firstly, I’m struggling to have it be
hidden on loading, even though it’s set to
display:none , it’s still open on preview load
I’ve got the first part down, clicking the hamburger menu opens and closes the menu.
I’ve tried using the
Page scrolled trigger using the same show/hide sequence, and it doesn’t work.
I also tried targeting the page wrapper or something similar for clicking outside of the menu to close with no luck.