Lenis Smooth Scroll
Where to find it: Project Settings > Custom Code > Before </body> tag (or individual Page Settings for pages other than Home).
What it does:
For the rest of the website (About, Projects, Blog, Contact), we use Lenis, a state-of-the-art smooth scroll library. It removes the clunky, jagged scrolling of standard web browsers and replaces it with a fluid, momentum-based glide.
How to customize it:
Look for the Initialize Lenis section in the code. You can adjust the following values to change how heavy or fast the page feels:
1. Duration (duration: 1.2,)This controls how long the scrolling momentum lasts.
- 0.8 = Faster, lighter page feel.
- 1.2 = Default Daylight premium weight.
- 2.0 = Very heavy, cinematic, slow glide.
2. Touch Multiplier (touchMultiplier: 2,)This speeds up how fast the page moves when users swipe on trackpads or mobile devices. You can increase this to 3 if the site feels too slow on laptops.
⚠️ Important Settings to Leave Alone:
smoothTouch: false— Keep this false! Forcing smooth scroll on mobile touch screens creates a terrible, laggy experience. Native iOS/Android scrolling is always better for phones.- Keep your main page wrappers padded with at least
1pxof bottom margin/padding to ensure Lenis can calculate the absolute bottom of the page perfectly.





