How to Block Site Scroll When Full Height Navigation is Opened in Framer

How to Block Site Scroll When Full Height Navigation is Opened in Framer

  • Guide

  • How-to
  • Scroll
  • Guide

  • How-to
  • Scroll
  • Guide

  • How-to
  • Scroll

How to Block Site Scroll When Full Height Navigation is Opened in Framer

Ever opened a full-screen nav and still been able to scroll the page behind it? Yeah, it’s not a great look. This blog shows you how to fix that with a tiny, invisible Framer component that cleanly disables scrolling when your menu is open. It’s simple to set up, totally seamless, and instantly levels up your user experience. No more accidental scrolling. Just smooth, intentional navigation.

image of Nandi Muzsik

Posted by

Nandi

Overlay navigation menu with bold white links and a Framer component setting enabled to block page scroll when the menu is open
Overlay navigation menu with bold white links and a Framer component setting enabled to block page scroll when the menu is open
Overlay navigation menu with bold white links and a Framer component setting enabled to block page scroll when the menu is open

Table of contents

The problem

Let’s say you’re previewing your site in Framer. You open your full-height nav, maybe it slides down from the top and covers everything with a semi-transparent background. But if you scroll with your touchpad or mouse, the content under the menu still moves.

That means someone could be halfway through your site before they even close the nav. Not ideal.

The fix: A simple “stop scroll” component

To solve this, we’ll use a tiny component called Stop Scroll. It’s basically invisible, doesn’t take up any space, and it blocks scroll when it’s active.

The problem

Let’s say you’re previewing your site in Framer. You open your full-height nav, maybe it slides down from the top and covers everything with a semi-transparent background. But if you scroll with your touchpad or mouse, the content under the menu still moves.

That means someone could be halfway through your site before they even close the nav. Not ideal.

The fix: A simple “stop scroll” component

To solve this, we’ll use a tiny component called Stop Scroll. It’s basically invisible, doesn’t take up any space, and it blocks scroll when it’s active.

The problem

Let’s say you’re previewing your site in Framer. You open your full-height nav, maybe it slides down from the top and covers everything with a semi-transparent background. But if you scroll with your touchpad or mouse, the content under the menu still moves.

That means someone could be halfway through your site before they even close the nav. Not ideal.

The fix: A simple “stop scroll” component

To solve this, we’ll use a tiny component called Stop Scroll. It’s basically invisible, doesn’t take up any space, and it blocks scroll when it’s active.

No scroll once menu is opened.

No scroll once menu is opened.

No scroll once menu is opened.

Here’s how to set it up:

Drop in the component

Drag and drop the Stop Scroll component into your canvas. It may appear as a tiny dot, that’s fine. You can set its positioning to absolute and opacity to zero, since it’s not a visual element.

Set it to “block scroll”

With the component selected, check the right panel. You’ll see a toggle called Block Scroll. Set it to Yes, and when you preview the site, scrolling is now disabled.

Set it to No, and scrolling works again.

Here’s how to set it up:

Drop in the component

Drag and drop the Stop Scroll component into your canvas. It may appear as a tiny dot, that’s fine. You can set its positioning to absolute and opacity to zero, since it’s not a visual element.

Set it to “block scroll”

With the component selected, check the right panel. You’ll see a toggle called Block Scroll. Set it to Yes, and when you preview the site, scrolling is now disabled.

Set it to No, and scrolling works again.

Here’s how to set it up:

Drop in the component

Drag and drop the Stop Scroll component into your canvas. It may appear as a tiny dot, that’s fine. You can set its positioning to absolute and opacity to zero, since it’s not a visual element.

Set it to “block scroll”

With the component selected, check the right panel. You’ll see a toggle called Block Scroll. Set it to Yes, and when you preview the site, scrolling is now disabled.

Set it to No, and scrolling works again.

Framer interface showing the Stop Scroll component nested in the Desktop content tree, with the Block Scroll option toggled off in the component settings panel

Scroll stop component in the navigation, with "Block Scroll" set to "no".

Framer interface showing the Stop Scroll component nested in the Desktop content tree, with the Block Scroll option toggled off in the component settings panel

Scroll stop component in the navigation, with "Block Scroll" set to "no".

Framer interface showing the Stop Scroll component nested in the Desktop content tree, with the Block Scroll option toggled off in the component settings panel

Scroll stop component in the navigation, with "Block Scroll" set to "no".

Applying it to your navigation

Now let’s make this dynamic so it only blocks scroll when the navigation is open.

Assuming your navigation is built using component variants (e.g. Mobile Closed and Mobile Open), here’s what you do:

Step-by-step:

  • Paste the Stop Scroll component inside your navigation component’s primary variant.

  • In the desktop variant, set Block Scroll to No.

  • In the Mobile Open variant, set Block Scroll to Yes.

And that’s it. Now, when the menu opens, scrolling is disabled. When the menu closes, scrolling is back.

Applying it to your navigation

Now let’s make this dynamic so it only blocks scroll when the navigation is open.

Assuming your navigation is built using component variants (e.g. Mobile Closed and Mobile Open), here’s what you do:

Step-by-step:

  • Paste the Stop Scroll component inside your navigation component’s primary variant.

  • In the desktop variant, set Block Scroll to No.

  • In the Mobile Open variant, set Block Scroll to Yes.

And that’s it. Now, when the menu opens, scrolling is disabled. When the menu closes, scrolling is back.

Applying it to your navigation

Now let’s make this dynamic so it only blocks scroll when the navigation is open.

Assuming your navigation is built using component variants (e.g. Mobile Closed and Mobile Open), here’s what you do:

Step-by-step:

  • Paste the Stop Scroll component inside your navigation component’s primary variant.

  • In the desktop variant, set Block Scroll to No.

  • In the Mobile Open variant, set Block Scroll to Yes.

And that’s it. Now, when the menu opens, scrolling is disabled. When the menu closes, scrolling is back.

Framer interface displaying the Stop Scroll component nested under the Mobile Open variant in the Content layer, with Block Scroll set to ‘Yes’ in the component settings

The "Block Scroll" property is changed to "yes" on the "Mobile Open" vairant.

Framer interface displaying the Stop Scroll component nested under the Mobile Open variant in the Content layer, with Block Scroll set to ‘Yes’ in the component settings

The "Block Scroll" property is changed to "yes" on the "Mobile Open" vairant.

Framer interface displaying the Stop Scroll component nested under the Mobile Open variant in the Content layer, with Block Scroll set to ‘Yes’ in the component settings

The "Block Scroll" property is changed to "yes" on the "Mobile Open" vairant.

Preview it in action

Try opening your menu now. You’ll notice: no background scrolling while it’s open. Close the menu? Scroll is back. It’s a small detail, but it makes your site feel way more polished and intentional.

Preview it in action

Try opening your menu now. You’ll notice: no background scrolling while it’s open. Close the menu? Scroll is back. It’s a small detail, but it makes your site feel way more polished and intentional.

Preview it in action

Try opening your menu now. You’ll notice: no background scrolling while it’s open. Close the menu? Scroll is back. It’s a small detail, but it makes your site feel way more polished and intentional.

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

More posts

More posts

  • Set of modern loading animations including spinners, dots, bars, and a 'Thinking...' text indicator on a dark UI background

    How to Create Custom Loading Animations for Framer Websites

    Guide

    Set of modern loading animations including spinners, dots, bars, and a 'Thinking...' text indicator on a dark UI background

    How to Create Custom Loading Animations for Framer Websites

    Guide

    Set of modern loading animations including spinners, dots, bars, and a 'Thinking...' text indicator on a dark UI background

    How to Create Custom Loading Animations for Framer Websites

    Guide

  • Framer visual logic flow with input, find, and output blocks

    How to Add Logic To Your Framer Sites

    Guide

    Framer visual logic flow with input, find, and output blocks

    How to Add Logic To Your Framer Sites

    Guide

    Framer visual logic flow with input, find, and output blocks

    How to Add Logic To Your Framer Sites

    Guide

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback