Web Threads
Drifting points joined by fine threads when they come close. The pointer joins in and gathers the web. Fills its parent: place it with absolute inset-0 behind your content.
import { WebThreads } from "pleate/effects/web-threads";Behind a headline
Your network, alive
Props
- colors
CSS colors or tokens: [points, threads]. Defaults follow the palette.
string[]- speed
Playback speed.
numberdefault 1- scale
Pattern size; above 1 is bigger.
numberdefault 1- interactive
Follow the pointer over the parent element.
booleandefault true- density
Points per 100,000 px² of area.
numberdefault 9- reach
Longest thread in px, times scale.
numberdefault 120
Accessibility
- Decorative: the canvas is aria-hidden and ignores pointer events, so content on top stays clickable.
- Pauses off screen and in hidden tabs; reduced motion shows one still frame.
- Canvas 2D.