Mercury Bloom
Web (React)
A raymarched WebGL blob of liquid metal that reflects your theme and turns toward the pointer.
A full-bleed raymarched WebGL shader of a metal blob that morphs with layered simplex noise. Its studio environment is built from the theme's background, card and primary tones, so it reads as polished pewter on paper in light mode and as dark mercury in dark mode, and follows the palette. It fills its positioned parent, re-reads the theme when the mode or palette changes, pauses when off screen and stays still when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add mercury-bloomManual
- Copy the code from the component tab.
- Create a file at
components/ui/mercury-bloom.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Animation speed multiplier. |
morph | number | 1.8 | Strength of the surface deformation. |
noiseScale | number | 1.3 | Frequency of the deformation noise. |
mouseAmount | number | 0.15 | How far the camera looks toward the pointer. |
metal | number | 1 | Reflection and specular strength. |
camera | number | 6.5 | Camera distance. |
tintHue | number | 220 | Hue of the optional tint in degrees. |
tintAmount | number | 0 | Strength of the tint (0 keeps the theme metal). |
Comments