Glowing Effect
An interactive glow effect that follows mouse movement with customizable colors, intensity, and animation styles.
Preview
Hover over me
Move your cursor around the card
Component not found in registry.
Usage
tsx
20 linesCopy
Color Variants
purple
purple
blue
blue
green
green
orange
orange
pink
pink
rainbow
rainbow
Animation Styles
smooth
smooth
snappy
snappy
bouncy
bouncy
Intensity Levels
High Intensity (2x)
High Intensity + Blur
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'white' | 'purple' | 'blue' | 'green' | 'orange' | 'pink' | 'rainbow' | 'custom' | default | Color theme preset for the glow effect |
customColors | { primary, secondary, tertiary, quaternary: string } | undefined | Custom colors (used when variant is 'custom') |
animationStyle | 'smooth' | 'snappy' | 'bouncy' | smooth | Style of the glow movement animation |
intensity | number | 1 | Intensity multiplier for the glow effect (0.5 to 2) |
blur | number | 0 | Blur amount in pixels for the glow |
spread | number | 20 | Size of the glow spread in degrees |
proximity | number | 0 | Distance outside element that activates glow |
inactiveZone | number | 0.7 | Center percentage that doesn't activate glow (0-1) |
glow | boolean | false | Show static glow border when not hovering |
disabled | boolean | true | Disable the interactive glow effect |
movementDuration | number | 2 | Base duration of glow movement in seconds |
borderWidth | number | 1 | Width of the glow border in pixels |