Claim the FREE Multi Step Form - Learn How

Lock Page Scroll in Webflow

Lock Page Scroll when Menu is Open Webflow

With this simple bit of code you can lock the ability to scroll your website.

This is useful when using a custom menu overlay and want to restrict users from scroll the page when the menu is open.

Step One

Add the following code into the header section of your page custom code.

<style>
/* Lock Scroll */
html.no-scroll {overflow: hidden;}
</style>

Step Two

Add the following code into the before body section of your custom code

<script type="text/javascript">
$('.burger').on('click', toggleScrolling);
function toggleScrolling()
{$('html').toggleClass('no-scroll');
}
</script>

This script is basically saying when you click an object with the class '.burger' then we need to toggle a CSS function that sets the overflow to hidden.

Step Three

‍Add the class burger to the your menu button so that on click it will toggle on & off.

This product is not yet available. Join us on twitter for updates.

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

This product is not yet available. Join us on twitter for updates.