LibraryEffects
FluidOrb
A small WebGL orb with a slowly moving fluid surface.
FluidOrb
Status: internal
Package path: packages/effects/src/fluid-orb/
Import: @ziteox/effects/fluid-orb
A small WebGL orb with a slowly moving fluid surface, for avatars, status badges or assistant launchers. Size and colour are props; several orbs can be desynced with phase and seed.
Preview
Usage
import { FluidOrb } from "@ziteox/effects/fluid-orb";
export function AssistantAvatar() {
return <FluidOrb size={32} />;
}Props
Also accepts any div props.
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | 240 | Width and height in px |
color | string | FLUID_ORB_GREEN (#10B981) | Orb colour |
phase | number | 0 | Seconds added to the animation time, to desync several orbs |
speed | number | 1 | Animation speed multiplier |
seed | number | 0 | Shifts the noise field for a different pattern |
drift | number | 1 | Drift amplitude multiplier |
interactive | boolean | false | React to pointer movement and presses |
Behaviour
- No extra dependencies: plain WebGL, no three.js.
- Falls back to a CSS radial gradient when WebGL is unavailable.
- The render loop pauses while the orb is off screen.
prefers-reduced-motion: reducefreezes the surface after the first frame.