PRO

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.

Component
Install
npx shadcn@latest add @compronents/blur-trail-video

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
srcstring—Video URL. Must be same-origin or sent with CORS headers, since WebGL reads its frames. Defaults to the hosted source footage.
decaynumber0.92Share of the trail kept each frame.
radiusnumber0.2Brush radius as a fraction of the container's short side.
smoothingnumber0.1How far the brush moves toward the pointer each frame, from 0 to 1.
shiftAmountnumber0.03Colour split distance in UV units.
shiftAnglenumber45Colour split direction in degrees. 45 sends red down and to the right.
blurSigmanumber16Gaussian sigma. Sets the tap count per pass (3 + 2 * sigma); changing it rebuilds the shaders.
blurStepnumber4Distance between blur taps in drawing-buffer pixels.
classNamestring—Class on the root. Its parent should have a height.
styleCSSProperties—Additional styles for the root.
childrenReactNode—Content layered above the video.
Dependencies
None.