refactor: update navigation and section IDs with smoother scroll behavior

This commit is contained in:
2025-10-14 12:56:44 +02:00
parent 2288a2b113
commit 6e9360fabf
5 changed files with 15 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import { motion, useInView } from 'framer-motion'
export function AnimatedSection({ children }: { children: React.ReactNode }) {
const ref = useRef(null)
const isInView = useInView(ref, { once: false, margin: '-50% 0px -50% 0px' })
const isInView = useInView(ref, { once: true, margin: '-20% 0px -20% 0px' })
return (
<motion.section