Liquid Chrome Orb
Web (React)
A molten liquid-metal torus, sphere or blob floating in a lit studio.
A 3D liquid-metal shape with flowing folds and prismatic edges, set against a studio backdrop. It fills its positioned parent and freezes its animation when the user prefers reduced motion. Built on the shaders library (MIT) and rendered with WebGPU.
Liquid Chrome
Installation
CLI
npx @modus-ui/cli add liquid-chrome-orbManual
- Install
shaderswithnpm install shaders. - Copy the code from the component tab.
- Create a file at
components/ui/liquid-chrome-orb.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
shape | "torus" | "sphere" | "blob" | "torus" | 3D shape to render. |
lightColor | string | "#eef0f6" | Highlight colour of the metal. |
darkColor | string | "#141414" | Shadow colour of the metal. |
backgroundColor | string | "#0b0b0f" | Studio backdrop colour. |
speed | number | 1 | Flow speed of the metal. |
turbulence | number | 1 | Strength of the surface folds. |
dispersion | number | 0.6 | Prismatic fringe on the edges. |
scale | number | 1 | Size of the shape. |
Comments