Modus UI

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-orb

Manual

  1. Install shaders with npm install shaders.
  2. Copy the code from the component tab.
  3. Create a file at components/ui/liquid-chrome-orb.tsx.
  4. Paste the code.

Usage

tsx
import { LiquidChromeOrb } from "@/components/ui/liquid-chrome-orb";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <LiquidChromeOrb />
      <div className="relative z-10 p-8">
        <h1>Content over the effect</h1>
      </div>
    </div>
  );
}

Props

PropTypeDefaultDescription
shape"torus" | "sphere" | "blob""torus"3D shape to render.
lightColorstring"#eef0f6"Highlight colour of the metal.
darkColorstring"#141414"Shadow colour of the metal.
backgroundColorstring"#0b0b0f"Studio backdrop colour.
speednumber1Flow speed of the metal.
turbulencenumber1Strength of the surface folds.
dispersionnumber0.6Prismatic fringe on the edges.
scalenumber1Size of the shape.

Comments

  • No comments yet.