first commit
This commit is contained in:
16
app/components/SmoothScroll.tsx
Normal file
16
app/components/SmoothScroll.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { ReactLenis } from "lenis/react";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export default function SmoothScroll({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<ReactLenis root options={{
|
||||
lerp: 0.05,
|
||||
duration: 1.5,
|
||||
smoothWheel: true
|
||||
}}>
|
||||
{children}
|
||||
</ReactLenis>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user