Already have a mobile navigation menu in Framer? Learn how to make it automatically close when users tap a link, perfect for scrolling one-page websites. This small UX improvement prevents confusion and keeps your interface clean.
If you’re building a mobile or one-page scrolling website, users expect the navigation menu to close automatically after selecting a link. In Framer, navigation menus stay open by default, which often blocks the content and causes confusion.
This tutorial teaches you how to add an auto-close behavior to your existing mobile navigation, no rebuilding, no code.
You already have:
A working mobile navigation component
Open/Closed states (or variants)
Links inside the nav (Home, About, Services, etc.)
We will only add interactions, nothing else changes.
Double-click your mobile nav to enter the component.
Locate the Default (Closed) Mobile and Open states (or variants).
For each link inside your mobile open nav:
Select the link text (or the frame containing the link)
Go to Interactions
Add a transition on Click back to you mobile default or closed variant:
This ensures:
Tap link → menu closes
Page scrolls to the selected section
No manual closing needed
Your mobile nav now behaves like modern apps:
Tap a menu item → menu hides automatically
Smooth scroll to the section
No code required