mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
import { AnimatePresence, motion } from "framer-motion"
|
|
|
|
type Props = {
|
|
visible?: boolean,
|
|
className?: string
|
|
}
|
|
|
|
export function GlowEffect({visible, className}: Props) {
|
|
return (
|
|
<AnimatePresence>
|
|
{visible && <motion.div transition={{duration: .1}} initial={{opacity: 0}} animate={{opacity: 1}} exit={{opacity: 0}} className={`${className} glow-on-hover`}/>}
|
|
</AnimatePresence>
|
|
)
|
|
}
|