Happy_Happy
KPCKevin Powell - Community
•Created by Happy_Happy on 11/15/2023 in #front-end
Disabling page scroll during page load and using Lenis smooth scroll
I want to disable scrolling during page load and also have Lenis smooth scroll on my website. I have the code below to prevent scrolling during page load. The problem is that if I scroll during the page load, after the page load ends, the page jumps to the extent of the scroll. Does anyone know how can I solve this problem?
5 replies