Toggle Sidebar B
AppearanceLight & dark mode D

Lightfall

Colorful light streaks raining down a glowing tunnel with a cursor light.

Default

Colors, streaks and the cursor light are wired to the controls underneath. The tunnel is drawn in a WebGL fragment shader.

Light previewReplay previewOpen in new tab
New Creative Components

Let the light rain down

Get started Learn more

Customize

Color 1
Color 2
Color 3
Background
Speed0.5
Streak Count2
Streak Width1
Streak Length1
Density0.6
Twinkle1
Glow1
Background Glow0.5
Zoom3
Cursor Strength0.5
Cursor Radius1

API Reference

Lightfall

PropTypeDefaultDescription
colorsstring[]['#A6C8FF', '#5227FF', '#FF9FFC']Array of hex colors (up to 8) used to tint the falling light streaks. Each streak is randomly but evenly assigned one of the colors; a single color makes the whole effect uniform.
backgroundColorstring'#0A29FF'Hex color of the soft ambient glow behind the streaks.
speednumber0.5Multiplier for how fast the light streaks fall.
streakCountnumber2Number of streak layers rendered per cell (1 to 16). Higher means busier.
streakWidthnumber1Thickness of each light streak.
streakLengthnumber1Length of the glowing tail trailing each streak.
glownumber1Overall brightness multiplier applied before tone mapping.
densitynumber0.6Vertical frequency of streaks. Higher values pack more streaks into view.
twinklenumber1Amount of per-streak brightness flicker. 0 means constant brightness.
zoomnumber3Field of view into the tunnel. Higher values zoom further in.
backgroundGlownumber0.5Intensity of the ambient background glow.
opacitynumber1Overall alpha of the rendered canvas.
mouseInteractionbooleantrueEnables a soft light that follows the cursor and flares nearby streaks (no warping).
mouseStrengthnumber0.5Intensity of the cursor light.
mouseRadiusnumber1Falloff radius of the cursor light.
mouseDampeningnumber0.15Easing time constant (seconds) for the cursor light to follow the pointer. 0 means immediate.
lightModebooleanfalseRenders the streaks over a white background instead of a transparent one.
mixBlendModestringundefinedCSS mix-blend-mode applied to the container (e.g. 'screen', 'lighten').
pausedbooleanfalseIf true, stops rendering updates (freezing the current frame).
dprnumberwindow.devicePixelRatioOverrides device pixel ratio; lower for performance, higher for sharpness.

Accessibility

Keyboard shortcuts and ARIA behavior.

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