Update src/app/layout.tsx
This commit is contained in:
@@ -20,6 +20,23 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="es">
|
||||
<head>
|
||||
<script
|
||||
async
|
||||
src="https://cdn.jsdelivr.net/npm/lenis@1.1.13/dist/lenis.min.js"
|
||||
/>
|
||||
<script>
|
||||
{`
|
||||
const lenis = new Lenis();
|
||||
lenis.on('scroll', (e) => {});
|
||||
function raf(time) {
|
||||
lenis.raf(time);
|
||||
requestAnimationFrame(raf);
|
||||
}
|
||||
requestAnimationFrame(raf);
|
||||
`}
|
||||
</script>
|
||||
</head>
|
||||
<body className={`${geist.variable} ${geistMono.variable} antialiased`}>
|
||||
{children}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user