Neon Glow Text
Create stunning neon glow effects with pulsating text shadows, customizable colors, and animation speed in your React components.
Overview
The NeonGlowText component simulates a neon sign effect with vibrant, pulsating text shadows. This component brings an eye-catching glow effect to your text, ideal for headers, buttons, or any attention-grabbing UI element.
It allows for easy customization of text color, glow color, animation duration, blur radius, and spread radius.
Preview
Usage
Code
Examples
glowColor
The glowColor is used to glow effect of the text.
duration
The duration is used to the duration of the animation.
blurRadius
The blurRadius is used to the blur radius of the text shadow.
spreadRadius
The spreadRadius is used the spread radius of the text shadow.
className
The className is use to apply additional Tailwind CSS classes, such as setting colors, padding, etc.
Props
| Prop | Type | Default |
|---|---|---|
text | string | - |
glowColor | string | "#ff00de" |
duration | number | 1 |
blurRadius | number | 5 |
spreadRadius | number | 2 |
className | string | - |
as | ElementType<any, keyof IntrinsicElements> | "div" |