Toggle Sidebar B
AppearanceLight & dark mode D

Light Tunnel

A radial fibre-optic tunnel with light pulses racing into depth.

Default

Every prop is wired to the controls underneath. The tunnel is drawn in a WebGL fragment shader, and the vanishing point drifts toward the cursor.

Light previewReplay previewOpen in new tab
New Creative Components

A fibre-optic tunnel of travelling light.

Get started Learn more

Customize

Cable Color
Pulse Color
Tunnel Color
Tunnel Opacity0
Speed0.1
Flow Direction
Pulse Speed2
Pulse Length0.28
Pulse Blend1
Pulse Width1
Cable Count20
Thickness0.35
Rim Width0.15
Waviness0.3
Sway0.5
Size1
Center Offset X0
Center Offset Y0
Glow1
Fade Near0.5
Fade Far2
Brightness1
Grain Intensity0.05
Opacity1
Cursor Strength0.1

API Reference

LightTunnel

PropTypeDefaultDescription
cableColorstring'#A855F7'Base color of the fibre-optic cables.
pulseColorstring'#A855F7'Color of the light pulses travelling along each cable.
tunnelColorstring'#5227FF'Tint color of the cable body fill (visible when tunnelOpacity is above 0).
tunnelOpacitynumber0Opacity of the cable body fill. 0 leaves the tunnel see-through so only rims and pulses show.
speednumber0.1Overall scroll speed of the pulses down the tunnel.
flowDirection'inward' | 'outward''outward'Whether the light travels toward or away from the vanishing point.
pulseSpeednumber2Speed multiplier for the individual light pulses.
pulseLengthnumber0.28Length of the glowing pulse along each cable.
pulseBlendnumber1How softly the pulse fades out at its edges. low is a crisp packet, high is a long smooth trail.
pulseWidthnumber1How much of the cable cross-section the pulse lights up. 1 fills the cable, lower narrows it to a filament.
cableCountnumber20Number of cables radiating around the tunnel.
thicknessnumber0.35Thickness of each cable core.
rimWidthnumber0.15Width of the soft outline glow around each cable.
wavinessnumber0.3Amount of wavy distortion applied along the tunnel depth.
swaynumber0.5Strength of the gentle rotational sway of the tunnel.
sizenumber1.0Zoom / scale of the tunnel field.
centerXnumber0.0Horizontal offset of the vanishing point.
centerYnumber0.0Vertical offset of the vanishing point.
glownumber1.0Intensity of the cable rim glow.
fadeNearnumber0.5Radius over which the tunnel fades in near the center.
fadeFarnumber2Radius at which the tunnel fades out toward the edges.
brightnessnumber1.0Overall brightness multiplier of the effect.
colorVariancebooleantrueAdds subtle per-cable color variation so cables are not uniform.
grainbooleantrueAdds a whisper-subtle animated film grain to break up banding in the gradients.
grainIntensitynumber0.05Amplitude of the grain overlay. 0 disables it entirely.
opacitynumber1.0Global opacity of the rendered tunnel.
mouseInteractionbooleantrueEnables gentle parallax of the vanishing point toward the pointer.
mouseStrengthnumber0.1Magnitude of the cursor parallax drift.
lightModebooleanfalseRenders the effect over an opaque white background instead of a transparent one.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. Place it behind content with enough contrast.