Squid
(Squid)
June 10, 2021, 3:02pm
1
Hi im making a website, and i cant stop the scrolling of bg when a modal/pop up is open.
i pretty sure you can do that with code. but i dont have a premium account so that its not a option.
Read only Link: https://preview.webflow.com/preview/ajudaoplaneta?utm_medium=preview_link&utm_source=designer&utm_content=ajudaoplaneta&preview=24959d8c21fb26fa3311393dab3c509e&workflow=preview
Here is my site Read-Only: LINK
(how to share your site Read-Only link )
There are threads here that discuss custom code for preventing page scroll when mobile menu is open. Might be kind of similar to implement. Perhaps worth taking a look.
Hi!
I’ve been trying to use this code for preventing scroll once my nav is open.
I have the same button for menu open and close. The scroll is correctly disabled when I change the class name of the second ‘menu’. But the scroll isn’t activated when the menu is closed. It doesn’t work at all if both the class names are the same (as shown in the above code). Can anyone help?
There are others…
1 Like