reactbits.dev
Get started

A fibre-optic tunnel of travelling light.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components
9:41

A fibre-optic tunnel of travelling light.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components

A fibre-optic tunnel of travelling light.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Get startedLearn more
Tunnel Opacity
0
Brightness
Speed
0.1
Pulse Speed
2
Pulse Length
0.28
Pulse Blend
0.6
Pulse Width
Pulse Density
0.5
Fibres
56
Thickness
0.35
Glow
Rim Width
0.15
Waviness
0.3
Sway
0.5
Bend
0.4
Size
Fade Near
0.5
Fade Far
2
Cursor Strength
0.1

More backgrounds in Pro

Shader scenes and animated surfaces made to sit behind real content.

View all 106
37 properties
cableColor'#ffffff'Color of the fibres.
pulseColor'#ffffff'Color of the light pulses.
tunnelColor'#ffffff'Color of the soft glow around the fibres, shown when tunnelOpacity is above 0.
tunnelOpacityStrength of the soft glow around the fibres that tints the tunnel walls.
speed0.1Overall speed of the tunnel.
flowDirection'inward' | 'outward''inward'Whether the pulses race into the tunnel or rush out toward you.
pulseSpeed2How fast the pulses travel.
pulseLength0.28Length of each pulse and its tail.
pulseBlend0.6Softness of the pulses, from crisp sparks (0) to long soft streaks (1).
pulseWidthWidth of the pulses relative to the fibres.
pulseDensity0.5How many pulses are travelling at once, from 0 to 1.
cableCount56Number of fibres around the tunnel.
thickness0.35Thickness of the fibres.
rimWidth0.15How far the glow spreads around each pulse.
waviness0.3How much the fibres swirl along the tunnel.
sway0.5How much the tunnel slowly rocks back and forth.
bend0.4How much the far end of the tunnel drifts and curves.
sizeScale of the tunnel.
centerXHorizontal offset of the tunnel center.
centerYVertical offset of the tunnel center.
glowStrength of the glow around the pulses.
fadeNear0.5How far from the center the tunnel fades in. Higher values keep the middle clear.
fadeFar2Distance at which the tunnel fades out at the edges.
brightnessOverall brightness.
colorVarianceGives every fibre a slightly different brightness.
grainAdds a fine film grain to the light.
grainIntensity0.05Strength of the grain.
opacityOpacity of the whole effect.
mouseInteractionSteers the far end of the tunnel toward the cursor.
mouseStrength0.1How far the cursor steers the tunnel.
clickSurgeClicking sends a ring of light down the tunnel.
Grows the tunnel out from the center on mount.
variationPicks a different arrangement of fibres and pulses.
lightModeDraws the tunnel as ink for light backgrounds.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
cableColorstring

Color of the fibres.

Default'#ffffff'
pulseColorstring

Color of the light pulses.

Default'#ffffff'
tunnelColorstring

Color of the soft glow around the fibres, shown when tunnelOpacity is above 0.

Default'#ffffff'
tunnelOpacitynumber

Strength of the soft glow around the fibres that tints the tunnel walls.

speednumber

Overall speed of the tunnel.

Default0.1
flowDirection'inward' | 'outward'

Whether the pulses race into the tunnel or rush out toward you.

Default'inward'
pulseSpeednumber

How fast the pulses travel.

Default2
pulseLengthnumber

Length of each pulse and its tail.

Default0.28
pulseBlendnumber

Softness of the pulses, from crisp sparks (0) to long soft streaks (1).

Default0.6
pulseWidthnumber

Width of the pulses relative to the fibres.

pulseDensitynumber

How many pulses are travelling at once, from 0 to 1.

Default0.5
cableCountnumber

Number of fibres around the tunnel.

Default56
thicknessnumber

Thickness of the fibres.

Default0.35
rimWidthnumber

How far the glow spreads around each pulse.

Default0.15
wavinessnumber

How much the fibres swirl along the tunnel.

Default0.3
swaynumber

How much the tunnel slowly rocks back and forth.

Default0.5
bendnumber

How much the far end of the tunnel drifts and curves.

Default0.4
sizenumber

Scale of the tunnel.

centerXnumber

Horizontal offset of the tunnel center.

centerYnumber

Vertical offset of the tunnel center.

glownumber

Strength of the glow around the pulses.

fadeNearnumber

How far from the center the tunnel fades in. Higher values keep the middle clear.

Default0.5
fadeFarnumber

Distance at which the tunnel fades out at the edges.

Default2
brightnessnumber

Overall brightness.

colorVarianceboolean

Gives every fibre a slightly different brightness.

grainboolean

Adds a fine film grain to the light.

grainIntensitynumber

Strength of the grain.

Default0.05
opacitynumber

Opacity of the whole effect.

mouseInteractionboolean

Steers the far end of the tunnel toward the cursor.

mouseStrengthnumber

How far the cursor steers the tunnel.

Default0.1
clickSurgeboolean

Clicking sends a ring of light down the tunnel.

introboolean

Grows the tunnel out from the center on mount.

variationnumber

Picks a different arrangement of fibres and pulses.

lightModeboolean

Draws the tunnel as ink for light backgrounds.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.

Light Tunnel — React Background | React Bits