Blur Trail Video
A full-bleed video that blurs and splits into red and blue wherever the pointer has just moved, then sharpens again as the trail fades over about a second. An eased brush paints a float mask each frame, and the mask mixes the plain video with an RGB-shifted, 35-tap Gaussian blur of it. Ported from the seitaroyamazaki.com hero in WebGL2, so it runs without WebGPU.
npx shadcn@latest add @compronents/blur-trail-videoInstalls from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.
Checking access…
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | Video URL. Must be same-origin or sent with CORS headers, since WebGL reads its frames. Defaults to the hosted source footage. |
| decay | number | 0.92 | Share of the trail kept each frame. |
| radius | number | 0.2 | Brush radius as a fraction of the container's short side. |
| smoothing | number | 0.1 | How far the brush moves toward the pointer each frame, from 0 to 1. |
| shiftAmount | number | 0.03 | Colour split distance in UV units. |
| shiftAngle | number | 45 | Colour split direction in degrees. 45 sends red down and to the right. |
| blurSigma | number | 16 | Gaussian sigma. Sets the tap count per pass (3 + 2 * sigma); changing it rebuilds the shaders. |
| blurStep | number | 4 | Distance between blur taps in drawing-buffer pixels. |
| className | string | — | Class on the root. Its parent should have a height. |
| style | CSSProperties | — | Additional styles for the root. |
| children | ReactNode | — | Content layered above the video. |
None.