What can I do to fix the issue with the navigation links not working properly when scrolling past the hero animation in my Webflow project?

TL;DR
  • Verify that each section has a unique ID matching the navigation link targets.  
  • Check if hero animations use overlapping or sticky elements that disrupt scrolling or clicks.  
  • Ensure navigation has a higher z-index than hero content and no animated elements block link targets.  
  • Review smooth scroll settings and disable custom scroll scripts to test default behavior.  
  • Remove or disable scroll libraries like fullPage.js to rule out conflicts.  
  • Always test links on the published site, not just in Webflow preview.

Navigation links in Webflow may stop working properly after scrolling past a hero section with animation due to issues like incorrect section IDs, overlapping elements, or JavaScript conflicts.

​

1. Check Section IDs and Anchor Links

  • Ensure each section your navigation links target has a unique and correctly spelled ID (e.g., id="about").
  • In your navigation menu, for each link set the Page Section field or Link Settings → Section to point to the correct ID.
  • Avoid using identical IDs more than once on the page.

​

2. Review Hero Section Animation and Overflow

  • If your hero animation involves pinned, fixed, or absolute elements:
  • Inspect for sticky or fixed navs being displaced during the animation.
  • Check if the animated element overlaps subsequent sections, blocking clicks or scroll.
  • Temporarily disable your hero animation to see if links work as expected — this helps isolate the issue.

​

3. Check Z-Index and Positioning

  • Make sure your navigation menu has a higher z-index than any animated hero content.
  • Confirm that animated elements don’t have z-index stacking that sits above the navigation targets or scrollable body.

​

4. Validate Scroll Behavior Settings

  • If using smooth scrolling via the Webflow settings or custom code, make sure it’s applied correctly and not conflicting with interactions.
  • If custom JavaScript is altering scroll behavior, disable it briefly to test native anchor link scrolling.

​

5. Disable Scroll Hijacking Libraries

  • If your project or template includes libraries like fullPage.js or custom scroll scripting, these can break anchor link behavior.
  • Temporarily remove or isolate them and check if navigation links work again.

​

6. Test on Published Site

  • Some navigation issues only appear in the published version of the site.
  • Always test anchor links on the published domain, not just in preview mode.

​

Summary

To fix navigation links breaking after the hero animation, verify anchor IDs, check for overlapping or animated layers, ensure proper z-indexing, and test without smooth scrolling or scroll-related scripts. Disabling parts of the hero animation to isolate the issue is also a key troubleshooting step.

Rate this answer

Other Webflow Questions