crucıble

Retro Forge

A synthwave horizon: a perspective plane of glowing magenta grid lines scrolling toward the viewer, melting into a layered violet horizon bloom, with an optional slit-scanned cyan sun, faint star field, and an optional neon outrun car cruising on the grid; the horizon light leans toward the cursor. Original OGL fragment shader, offscreen-paused and reduced-motion-safe; a ghost pointer keeps it moving when untouched.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/retro-forge

Manual — install dependencies, then copy the source

npm install ogl motion

Props

PropTypeDefaultDescription
colors[string, string, string]Three tones: [line, glow, sun]. line is the grid-line color (magenta), glow is the horizon glow (violet), sun is the horizon semicircle (cyan). Any hex string.
speednumber1Grid-scroll speed multiplier. 1 = default, 2 = twice as fast.
heatnumber1Heat 0–1: scales the brightness of the horizon glow, the rolling glow wave on the grid, and the sun together.
cellSizenumber60Grid cell size in px (larger = coarser grid).
sunbooleantrueRender the horizon "sun" semicircle with scanline slits.
carbooleantrueRender the neon outrun sports car cruising on the grid.
idlebooleantrueIdle autoplay: after ~1.5s with no real pointer, a seeded ghost pointer leans the horizon light on a slow drift so it never looks dead in thumbnails and heroes; the real pointer takes over instantly. Never runs under reduced motion.
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.