
A fibre-optic tunnel of travelling light.
React Bits brings motion and character to your interface, one copy-paste component at a time.

A fibre-optic tunnel of travelling light.
React Bits brings motion and character to your interface, one copy-paste component at a time.
A fibre-optic tunnel of travelling light.
React Bits brings motion and character to your interface, one copy-paste component at a time.
More backgrounds in Pro
Shader scenes and animated surfaces made to sit behind real content.
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. | |
tunnelOpacity | Strength of the soft glow around the fibres that tints the tunnel walls. | ||
speed | 0.1 | Overall speed of the tunnel. | |
flowDirection | 'inward' | 'outward' | 'inward' | Whether the pulses race into the tunnel or rush out toward you. |
pulseSpeed | 2 | How fast the pulses travel. | |
pulseLength | 0.28 | Length of each pulse and its tail. | |
pulseBlend | 0.6 | Softness of the pulses, from crisp sparks (0) to long soft streaks (1). | |
pulseWidth | Width of the pulses relative to the fibres. | ||
pulseDensity | 0.5 | How many pulses are travelling at once, from 0 to 1. | |
cableCount | 56 | Number of fibres around the tunnel. | |
thickness | 0.35 | Thickness of the fibres. | |
rimWidth | 0.15 | How far the glow spreads around each pulse. | |
waviness | 0.3 | How much the fibres swirl along the tunnel. | |
sway | 0.5 | How much the tunnel slowly rocks back and forth. | |
bend | 0.4 | How much the far end of the tunnel drifts and curves. | |
size | Scale of the tunnel. | ||
centerX | Horizontal offset of the tunnel center. | ||
centerY | Vertical offset of the tunnel center. | ||
glow | Strength of the glow around the pulses. | ||
fadeNear | 0.5 | How far from the center the tunnel fades in. Higher values keep the middle clear. | |
fadeFar | 2 | Distance at which the tunnel fades out at the edges. | |
brightness | Overall brightness. | ||
colorVariance | Gives every fibre a slightly different brightness. | ||
grain | Adds a fine film grain to the light. | ||
grainIntensity | 0.05 | Strength of the grain. | |
opacity | Opacity of the whole effect. | ||
mouseInteraction | Steers the far end of the tunnel toward the cursor. | ||
mouseStrength | 0.1 | How far the cursor steers the tunnel. | |
clickSurge | Clicking sends a ring of light down the tunnel. | ||
| Grows the tunnel out from the center on mount. | |||
variation | Picks a different arrangement of fibres and pulses. | ||
lightMode | Draws the tunnel as ink for light backgrounds. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
cableColorstringColor of the fibres.
'#ffffff'pulseColorstringColor of the light pulses.
'#ffffff'tunnelColorstringColor of the soft glow around the fibres, shown when tunnelOpacity is above 0.
'#ffffff'tunnelOpacitynumberStrength of the soft glow around the fibres that tints the tunnel walls.
speednumberOverall speed of the tunnel.
0.1flowDirection'inward' | 'outward'Whether the pulses race into the tunnel or rush out toward you.
'inward'pulseSpeednumberHow fast the pulses travel.
2pulseLengthnumberLength of each pulse and its tail.
0.28pulseBlendnumberSoftness of the pulses, from crisp sparks (0) to long soft streaks (1).
0.6pulseWidthnumberWidth of the pulses relative to the fibres.
pulseDensitynumberHow many pulses are travelling at once, from 0 to 1.
0.5cableCountnumberNumber of fibres around the tunnel.
56thicknessnumberThickness of the fibres.
0.35rimWidthnumberHow far the glow spreads around each pulse.
0.15wavinessnumberHow much the fibres swirl along the tunnel.
0.3swaynumberHow much the tunnel slowly rocks back and forth.
0.5bendnumberHow much the far end of the tunnel drifts and curves.
0.4sizenumberScale of the tunnel.
centerXnumberHorizontal offset of the tunnel center.
centerYnumberVertical offset of the tunnel center.
glownumberStrength of the glow around the pulses.
fadeNearnumberHow far from the center the tunnel fades in. Higher values keep the middle clear.
0.5fadeFarnumberDistance at which the tunnel fades out at the edges.
2brightnessnumberOverall brightness.
colorVariancebooleanGives every fibre a slightly different brightness.
grainbooleanAdds a fine film grain to the light.
grainIntensitynumberStrength of the grain.
0.05opacitynumberOpacity of the whole effect.
mouseInteractionbooleanSteers the far end of the tunnel toward the cursor.
mouseStrengthnumberHow far the cursor steers the tunnel.
0.1clickSurgebooleanClicking sends a ring of light down the tunnel.
introbooleanGrows the tunnel out from the center on mount.
variationnumberPicks a different arrangement of fibres and pulses.
lightModebooleanDraws the tunnel as ink for light backgrounds.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



