You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is the need to block the nav bar at the top / bottom on mobile.
You will add on html overflow: hidden. And to get the scroll back then you will have on body overflow-y: scroll
You will tell lennis which one is the new wrapper and content
But it does not scroll at all
HTML structure
<html>
<body>
<main>
// content...
const lenis = new Lenis({
wrapper: document.querySelector('body'),
content: document.querySelector('main'),
});
Describe the bug
When there is the need to block the nav bar at the top / bottom on mobile.
You will add on html overflow: hidden. And to get the scroll back then you will have on body overflow-y: scroll
You will tell lennis which one is the new wrapper and content
But it does not scroll at all
HTML structure
Code example:
https://codepen.io/mariosmaselli/pen/VYZYjGe
Maybe the wrapper & content are not the right ones?
The text was updated successfully, but these errors were encountered: