Please tell me how to disable page scrolling for a certain time while the preloader is loading?
I used another script which blocked page scrolling when element with attribute was in view. but with the use of Lenis, this script stopped working.
I think it is possible to apply the attribute “data-lenis-stop” not by clicking on the element, but when the element is on the screen.
but I do not understand what needs to be added in the code to implement this attribute