forked from sashaastiadi/www_mycelium_net
refactor: update navigation and section IDs with smoother scroll behavior
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user