Fullscreen menu that works perfectly on all pages except the homepage

Problem

I have a fullscreen menu that works perfectly on all pages except the homepage. On the homepage, the menu opens correctly—but auto-closes after about 3–4 seconds, even when:

  • All custom code is removed
  • All interactions (including Page Load, Preloader, and Navbar) are disabled or deleted
  • Webflow’s native Navbar component is not used for menu logic
  • Lenis and scroll-related scripts are removed
  • Cookie banner and other injected scripts are removed
  • The homepage is duplicated and republished with no IX2 triggers
  • Global styles and menu class names are cleaned up

What I’ve Tried

  • Rebuilding menu logic with custom JS and MutationObserver
  • Manual toggling with w--open state
  • Removing all known sources of conflict (Lenis, preloader, cookie banner, scroll styles)
  • Duplicating the homepage and setting it as the new homepage
  • Removing all global and page-specific code

Even with only the menu left on the page and no custom code, the fullscreen menu still closes itself a few seconds after opening—only on the published homepage, not in preview.

Any ideas?

I’m wondering if this is a residual IX2 binding or page ID conflict on the homepage itself. If anyone has solved something like this (or if any Webflow staff is watching!), I’d really appreciate your help.

Thanks in advance,


Here is my public share link: Webflow - Trolltunga

You have a bunch of custom code in Embeds as well, and that’s at least part of the problem.
For example, your tab switching code causes a click to occur when the menu is open, which means it’s opening and then click-closing again on the timer.

I suspect there may be a bug with the interaction itself as well, because when I remove the tab code, the menu works perfectly once. Then the second time, it’s somewhat broken.

1 Like

Thanks! You saved the day or at least many hours of trying to debug this thing.. :smiley:

I’ve updated the auto-change code embed with this and now it’s working perfectly.

1 Like