When navbar opens, scroll should not work

Hello again, fellow Webflowers!

I am back with yet another confusing problem for me. I have a project that has a navbar that covers the entire screen when opened. When it opens I want to make it impossible to scroll, I have used fn-sweet for this but can’t make it to work. It seems to be in my specific project though because if I mirror it in a brand new project it seems to work. I have not found the problem I therefore reaching out to someone more experienced who can hopefully help!

Read only link: Webflow - Mölle GK

Thank you in advance, if you need more context or information I will get back ASAP!

Stay fresh,

Hi mate, giving you quick idea, If clicked on menu button, Set css on body to overflow hidden and when clicked on menu close icon set css to overflow none

If you need more help, let me know

Hello Pravin!

Yes, I see what you are trying to do. Do you have any clue if I need custom code for this?

All the best,

Yes, it will
Suggestions is to use chat gpt or weblocks

Alright then I’l try that. Thank you for your help!

1 Like