Neon Reveal
Realistic neon bar effect that sweeps across the container
Neon Reveal
Customize
Tweak the props liveTiming & Direction
Bar Settings
Effects & Scroll
Props
| Name | Type | Default | Description |
|---|---|---|---|
revealDelay | number | 0 | Number of milliseconds to wait before starting the reveal animation |
revealDuration | number | 2000 | Duration of the reveal animation in milliseconds |
verticalOffset | number | 0.7 | Vertical offset of the neon bar (0.0 to 1.0, where 0 is bottom and 1 is top) |
direction | "horizontal" | "vertical" | "horizontal" | Direction of the neon bar |
color | number | 200 | Hue of the neon bar (0-360 degrees) |
barWidth | number | 1.0 | Width/length of the bar as a percentage (0.0 to 1.0, where 1.0 is full width) |
barHeight | number | 0.02 | Height/thickness of the bar (0.0 to 1.0) |
mirrored | boolean | false | Whether to render a mirrored bar on the opposite side |
expandFrom | "center" | "left" | "right" | "center" | Where the bar expands from: center, left, or right |
animateOnScroll | boolean | false | Trigger animation when element enters viewport |
scrollThreshold | number | 0.3 | Viewport intersection threshold for scroll trigger (0.0 to 1.0) |
intensity | number | 1.0 | Overall glow intensity multiplier |
glowSpread | number | 1.0 | How far the glow spreads from the bar |
followCursor | boolean | false | Make the glow follow the cursor position |
onStart | () => void | undefined | Callback when animation starts |
onComplete | () => void | undefined | Callback when animation completes |
className | string | "" | Additional CSS classes for the container |
children | ReactNode | undefined | Content to render inside the component |
revealDelaynumberNumber of milliseconds to wait before starting the reveal animation
0revealDurationnumberDuration of the reveal animation in milliseconds
2000verticalOffsetnumberVertical offset of the neon bar (0.0 to 1.0, where 0 is bottom and 1 is top)
0.7direction"horizontal" | "vertical"Direction of the neon bar
"horizontal"colornumberHue of the neon bar (0-360 degrees)
200barWidthnumberWidth/length of the bar as a percentage (0.0 to 1.0, where 1.0 is full width)
1.0barHeightnumberHeight/thickness of the bar (0.0 to 1.0)
0.02mirroredbooleanWhether to render a mirrored bar on the opposite side
falseexpandFrom"center" | "left" | "right"Where the bar expands from: center, left, or right
"center"animateOnScrollbooleanTrigger animation when element enters viewport
falsescrollThresholdnumberViewport intersection threshold for scroll trigger (0.0 to 1.0)
0.3intensitynumberOverall glow intensity multiplier
1.0glowSpreadnumberHow far the glow spreads from the bar
1.0followCursorbooleanMake the glow follow the cursor position
falseonStart() => voidCallback when animation starts
undefinedonComplete() => voidCallback when animation completes
undefinedclassNamestringAdditional CSS classes for the container
""childrenReactNodeContent to render inside the component
undefined