Neon Reveal

Realistic neon bar effect that sweeps across the container

neon-reveal-tw

Neon Reveal

Customize

1000
2500
1
260
1
0.02
0.3
1.5
0.5

Props

NameTypeDefaultDescription
revealDelaynumber0Number of milliseconds to wait before starting the reveal animation
revealDurationnumber2000Duration of the reveal animation in milliseconds
verticalOffsetnumber0.7Vertical 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
colornumber200Hue of the neon bar (0-360 degrees)
barWidthnumber1.0Width/length of the bar as a percentage (0.0 to 1.0, where 1.0 is full width)
barHeightnumber0.02Height/thickness of the bar (0.0 to 1.0)
mirroredbooleanfalseWhether to render a mirrored bar on the opposite side
expandFrom"center" | "left" | "right""center"Where the bar expands from: center, left, or right
animateOnScrollbooleanfalseTrigger animation when element enters viewport
scrollThresholdnumber0.3Viewport intersection threshold for scroll trigger (0.0 to 1.0)
intensitynumber1.0Overall glow intensity multiplier
glowSpreadnumber1.0How far the glow spreads from the bar
followCursorbooleanfalseMake the glow follow the cursor position
onStart() => voidundefinedCallback when animation starts
onComplete() => voidundefinedCallback when animation completes
classNamestring""Additional CSS classes for the container
childrenReactNodeundefinedContent to render inside the component