import { cn } from '@/lib/utils'; import { motion } from 'framer-motion'; interface AnimatedTextProps { text: string; className?: string; wordClassName?: string; initialY?: number; duration?: number; wordDelay?: number; } const AnimatedText = ({ text, className = '', wordClassName = '', initialY = -100, duration = 0.5, wordDelay = 0.2, }: AnimatedTextProps) => { const words = text.split(' '); return (
{words.map((word, i) => ( {word} ))}
); }; export default AnimatedText;