()
| 2 | import { motion } from 'framer-motion' |
| 3 | |
| 4 | export default function NeonGlowLoader() { |
| 5 | const circleVariants = { |
| 6 | hidden: { opacity: 0, scale: 0 }, |
| 7 | visible: { opacity: 1, scale: 1 }, |
| 8 | } |
| 9 | |
| 10 | return ( |
| 11 | <div className="flex items-center justify-center"> |
| 12 | <motion.div |
| 13 | className="relative h-20 w-20" |
| 14 | initial="hidden" |
| 15 | animate="visible" |
| 16 | transition={{ staggerChildren: 0.2 }} |
| 17 | > |
| 18 | {[...Array(3)].map((_, index) => ( |
| 19 | <motion.div |
| 20 | key={index} |
| 21 | className="absolute h-16 w-16 -translate-x-1/2 -translate-y-1/2 rounded-full" |
| 22 | variants={circleVariants} |
| 23 | transition={{ |
| 24 | duration: 1, |
| 25 | ease: 'easeInOut', |
| 26 | repeat: Infinity, |
| 27 | repeatType: 'reverse', |
| 28 | }} |
| 29 | style={{ |
| 30 | boxShadow: `0 0 20px 5px ${['#fb3a5d', '#00FFFF', '#FFFF00'][index]}`, |
| 31 | filter: 'blur(10px)', |
| 32 | }} |
| 33 | ></motion.div> |
| 34 | ))} |
| 35 | </motion.div> |
| 36 | </div> |
| 37 | ) |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected