Simple Smooth Scroll with Lenis.js

add this to the footer

for more arguments check https://github.com/darkroomengineering/lenis/blob/main/README.md

<script src="https://cdn.jsdelivr.net/npm/lenis@latest/dist/lenis.min.js"></script> 
<script>
const lenis = new Lenis({
  autoRaf: true,
  duration: 1,
  easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
  lerp: 0.1,
  wheelMultiplier: 1,
});
</script>

if you use bricks builder use this instead

or builder scrolls having some issues from it

<script src="https://cdn.jsdelivr.net/npm/lenis@latest/dist/lenis.min.js"></script> 
<script>
// Check if URL contains ?bricks=run
const urlParams = new URLSearchParams(window.location.search);
if (!urlParams.has('bricks') || urlParams.get('bricks') !== 'run') {
  const lenis = new Lenis({
    autoRaf: true,
    duration: 1,
    easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
    lerp: 0.1,
    wheelMultiplier: 1,
  });
}
</script>