import React from 'react'; import { motion, AnimatePresence } from 'framer-motion'; interface MemeSymbol { id: number; symbol: string; direction: number; // angle in degrees distance: number; } export const MemeAnimation = ({ className = '' }: { className?: string }) => { const createMemeWave = () => { const memes: MemeSymbol[] = []; const symbols = ['💡', '🎯', '📱', '🔄', '🌐', '💫']; // Create memes that will spread out in different directions for (let i = 0; i < 12; i++) { const baseSymbol = symbols[Math.floor(Math.random() * symbols.length)]; memes.push({ id: i, symbol: baseSymbol, direction: (i * 30) + Math.random() * 15, // Spread in different directions (0-360 degrees) distance: 40 + Math.random() * 40, // Variable distance from center (40-80%) }); } return memes; }; const memeSymbols = createMemeWave(); return (
{/* Background network effect */}
{[...Array(20)].map((_, i) => (
))}
{/* Central source of memes */} 🌟 {/* Spreading meme symbols */} {memeSymbols.map((meme, index) => { const angle = meme.direction * (Math.PI / 180); const delay = index * 0.1; return ( {meme.symbol} {/* Echo effect */} {meme.symbol} ); })} {/* Floating engagement indicators */} {[...Array(5)].map((_, i) => ( {['🔁', '❤️', '⭐'][Math.floor(Math.random() * 3)]} ))}
); };