crucıble

Corona

A classic aurora: draping vertical light curtains fold and sway with height, threaded with shimmering ray filaments over a faint twinkling starfield, in teal, violet, and ice blue. The curtains lean gently toward the pointer. Original OGL fragment shader, offscreen-paused and reduced-motion-safe; the curtains idle on their own when untouched.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/corona

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
colors[string, string, string]aurora teal / violet / ice blueThree tones for the ribbon gradient: [crest, mid, base]. Any hex string.
bandsnumber4Number of ribbon bands, clamped 3–6.
speednumber1Flow speed multiplier. 1 = default.
intensitynumber1Overall brightness / bloom of the ribbons. 1 = default.
pausedbooleanFreeze the animation, holding the current frame.
idlebooleantrueIdle autoplay: after ~1.5s with no pointer present, a seeded ghost drifts slowly across the field and leans the curtains, so thumbnails and heroes never look still; a real pointer takes over instantly. Never runs under reduced motion.
classNamestringExtra classes for the wrapper. Positioned absolute inset-0 -z-10.

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