import { useRef } from 'react'; import { motion, useInView } from 'framer-motion'; /* Animates text word-by-word with blur + fade */ export default function BlurText({ text = '', className = '', delay = 0 }) { const ref = useRef(null); const inView = useInView(ref, { once: true, margin: '-40px' }); const words = text.split(' '); return ( {words.map((word, i) => ( {word} ))} ); }