A customizable glow effect with animation modes, colors, blur, and transitions
import { GlowEffect } from '@/components/ui/glow-effect'; import { ArrowRight } from 'lucide-react'; export function GlowEffectButton() { return ( <div className='relative'> <GlowEffect colors={['#FF5733', '#33FF57', '#3357FF', '#F1C40F']} mode='colorShift' blur='soft' duration={3} scale={0.9} /> <button className='relative inline-flex items-center gap-1 rounded-md bg-zinc-950 px-2.5 py-1.5 text-sm text-zinc-50 outline outline-1 outline-[#fff2f21f]'> Explore <ArrowRight className='h4 w-4' /> </button> </div> ); }
Part of Motion Primitives — browse the full library on 21st.dev.