crucıble

Draft

A soft fluid gradient mesh: domain-warped fbm shader swirling slate, indigo, and violet fields in a slow cloud-like drift. Original OGL fragment shader, dithered, offscreen-paused, reduced-motion-safe.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/draft

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
colors[string, string, string, string]a soft slate / indigo / violet paletteBlob colors, any hex color.
speednumberAnimation speed multiplier. 1 = default, 2 = twice as fast.
pausedbooleanFreeze the animation at its current frame.
blurnumberSoftness of the color fields. Kept in the same px scale as the original CSS version for API compatibility (90 = default); internally it maps to a shader smoothness uniform — lower values sharpen the mesh edges, higher values melt them further together.
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.