Neon Reveal

Realistic neon bar effect that sweeps across the container

Neon Reveal

Customize

Reveal Delay (ms)
1000
Reveal Duration (ms)
2500
Color (Hue)
260
Bar Width
1.00
Bar Height
0.020
Vertical Offset
1.00
Intensity
1.5
Glow Spread
0.5
Scroll Threshold
0.3

Props

18
revealDelaynumber

Number of milliseconds to wait before starting the reveal animation

Default0
revealDurationnumber

Duration of the reveal animation in milliseconds

Default2000
verticalOffsetnumber

Vertical offset of the neon bar (0.0 to 1.0, where 0 is bottom and 1 is top)

Default0.7
direction"horizontal" | "vertical"

Direction of the neon bar

Default"horizontal"
colornumber

Hue of the neon bar (0-360 degrees)

Default200
barWidthnumber

Width/length of the bar as a percentage (0.0 to 1.0, where 1.0 is full width)

Default1.0
barHeightnumber

Height/thickness of the bar (0.0 to 1.0)

Default0.02
mirroredboolean

Whether to render a mirrored bar on the opposite side

Defaultfalse
expandFrom"center" | "left" | "right"

Where the bar expands from: center, left, or right

Default"center"
animateOnScrollboolean

Trigger animation when element enters viewport

Defaultfalse
scrollThresholdnumber

Viewport intersection threshold for scroll trigger (0.0 to 1.0)

Default0.3
intensitynumber

Overall glow intensity multiplier

Default1.0
glowSpreadnumber

How far the glow spreads from the bar

Default1.0
followCursorboolean

Make the glow follow the cursor position

Defaultfalse
onStart() => void

Callback when animation starts

Defaultundefined
onComplete() => void

Callback when animation completes

Defaultundefined
classNamestring

Additional CSS classes for the container

Default""
childrenReactNode

Content to render inside the component

Defaultundefined