How can I disable page scrolling while the preloader is loading in Webflow?
Published on
September 22, 2023
To disable page scrolling while the preloader is loading in Webflow, you can use custom code. Here's how you can achieve this:
- Go to your Webflow project and navigate to the page where you want to disable scrolling during the preloader.
- Click on the "Page settings" icon in the left sidebar.
- Select the "Custom code" tab.
- In the "Head code" section, paste the following code:
<style> body { overflow: hidden !important; }</style>
- Click "Save changes" to apply the changes.
- This code will add a style tag to the head of your page and set the
overflow
property of thebody
element tohidden
, preventing scrolling while the preloader is active. - Make sure to remove the code once the preloader is no longer necessary to restore regular page scrolling functionality.
By following these steps, you will be able to disable page scrolling while the preloader is loading in Webflow.
Additional Questions:
- How do I add a custom preloader to my Webflow site?
- Can I customize the appearance of the preloader in Webflow?
- Is it possible to have different preloaders for different pages in Webflow?