crucıble

Warp

A jump-to-light-speed hyperspace background: layered star-streaks accelerate radially from a vanishing point, their length breathing with a slow warp surge, their heads fringed by real chromatic aberration and lit by a colored bloom, over a soft central glow and a faint twinkling starfield. The pointer steers the vanishing point. Original OGL fragment shader, tone-mapped, dithered, DPR-clamped, offscreen-paused, reduced-motion-safe.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/warp

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
colors[string, string, string]a cool blue-white hyperspace palette. Pass a warm set (e.g. ["#fff3e6", "#ff9a5c", "#ffcf99"]) for a solar jumpThree tones: [core, head, bloom]. core is the streak body (kept near white for the classic light-speed look), head the chromatic tint that blooms at the leading edge of each streak, bloom the central glow at the vanishing point.
speednumber1Outward-travel speed multiplier. 1 = default, 2 = twice as fast.
intensitynumber1Overall luminosity of the streaks, heads, and center bloom, 0–2. 1 = default; lower is a calmer drift, higher blazes into full jump.
densitynumber1Streak density, 0.3–2. Scales how many stars radiate from the vanishing point. Lower is a sparse calm field, higher a dense warp tunnel.
pausedbooleanFreeze the animation at its current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"div">they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, pauses offscreen and on hidden tabs, and passes className through.