Hey Webflow Team
My problem:
I have a single page website with a splash screen overlay and I want to disable the scroll bar until my assets load. It would be great to achieve this via an interaction.
Workaround:
I have achieved this with the following and the scroll-bar appears after my assets load
-
Set the body to have a
height: 100%
andoverflow: hidden
-
On the page’s custom code, paste the below snippet
$(window).load(function(){
$(‘body’).css({overflow: ‘visible’});
})
Risk:
I need to be aware of this change everytime I edit my page