PRO

Cappen Fluid Simulation

A WebGL fluid field laid over a hard typographic hero. Pointer velocity splats into a GPU dye simulation, the display pass thresholds it into an ink mask, and idle currents keep the canvas alive even before interaction. Three.js render targets, scoped to a React component.

Component

Fluid System In

Constant Field

Of Interaction

Install
npx shadcn@latest add https://ui.aryank.space/r/cappen-fluid-simulation.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
headlinestring[]["Fluid System In", "Constant Field", "Of Interaction"]Three hero lines rendered behind the fluid layer.
navLinks{ label: string; href: string }[]works / about / updates / start a projectOptional mono navigation row.
inkColor / background / textColorstring"#ffffff" / "#ffffff" / "#000000"Color system for the ink pass and page layer.
simResolution / dyeResolutionnumber256 / 1024Render target resolution for velocity and dye fields.
curl / forceStrength / splatRadiusnumber50 / 8.5 / 0.3Fluid behavior controls.
Customize
headlinetuple

Three uppercase lines arranged left, right, and center.

inkColor / blendModecolor

The shader output color and the CSS compositing mode used over the typography.

curl / forceStrengthtext

Simulation energy controls: vortex pull and pointer velocity injection.

Dependencies
three