import { useState, useEffect } from "react" import { motion } from "framer-motion" import "./LoadingScreen.css" const LoadingScreen = () => { const [particles, setParticles] = useState([]) useEffect(() => { const newParticles = Array.from({ length: 10 }, (_, i) => ({ id: i, x: Math.random() * window.innerWidth, y: Math.random() * window.innerHeight, duration: 3 + Math.random() * 2, delay: Math.random() * 2 })) setParticles(newParticles) }, []) return (
MKCart
Welcome to MKCart💖
{particles.map((particle) => ( ))}
) } export default LoadingScreen