'use client'; import React, { useEffect, useState } from 'react'; import { motion, useScroll, useSpring, useTransform } from 'framer-motion'; export function TrenchLines() { const { scrollYProgress } = useScroll(); // Apply a spring to make the scroll movement feel heavier, industrial const smoothProgress = useSpring(scrollYProgress, { stiffness: 100, damping: 30, restDelta: 0.001 }); // Map progress to vertical position const yPosition = useTransform(smoothProgress, [0, 1], ['-15vh', '100vh']); const yPositionMarker = useTransform(smoothProgress, [0, 1], ['-15vh', '100vh']); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) return null; return (
{/* Left Trench Line */}
{/* Subtle digging pulse marker */}
{/* Right Trench Line */}
{/* Subtle digging pulse marker */}
); }