Light Tunnel
Flying down a tunnel of rings and streaks of light. The pointer moves the vanishing point.
import { LightTunnel } from "pleate/effects/light-tunnel";Behind a headline
Through the tunnel
Props
- rings
Ring density.
numberdefault 1- segments
Light streaks around the tunnel.
numberdefault 12- colors
CSS colors or tokens: near and far colors. Defaults follow the palette.
string[]- speed
Playback speed.
numberdefault 1- scale
Pattern size; above 1 is bigger.
numberdefault 1- interactive
React to the pointer over the parent.
booleandefault true
Accessibility
- Decorative: the canvas is aria-hidden and ignores pointer events, so content on top stays usable.
- Pauses off screen and in hidden tabs; with reduced motion it shows a still frame.
- Fills its parent: give the parent position relative and the background absolute inset-0.