Menu open - How to enable scrolling

Hi everyone,

I’m really new in webflow and I’m really that there is this platform because I’m struggling with a “detail” since a while:

  • I have a hamburger menu and when I click one it, the menu opens well. I found a piece of code to add to block the scrolling during the menu is open.

Problem: But I only can close the menu well if I click in the Burger/Cross; If I click outside of the menu to close it, it’s not the scrolling isn’t unlocked and the burger is still a cross instead of coming back to his original state. So I deleted it.

Is anyone having the same problem? Or is there anyone who know how I can do that?

I will be really thankful if someone can help me with this.

Many thanks for you time,

Claire

The piece of code was:

Inside head tag add:

html.no-scroll { overflow: hidden; }

and before the body tag add:

give your ‘button’ the class ‘burger’

clicking this on and off should lock and unlock scroll

give your ‘button’ the class ‘burger’

clicking this on and off should lock and unlock scroll


Here is my public share link: LINK
(how to access public share link)