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

FluidOrb · large one is interactive

Usage

import { FluidOrb } from "@ziteox/effects/fluid-orb";

export function AssistantAvatar() {
  return <FluidOrb size={32} />;
}

Props

Also accepts any div props.

PropTypeDefaultDescription
sizenumber240Width and height in px
colorstringFLUID_ORB_GREEN (#10B981)Orb colour
phasenumber0Seconds added to the animation time, to desync several orbs
speednumber1Animation speed multiplier
seednumber0Shifts the noise field for a different pattern
driftnumber1Drift amplitude multiplier
interactivebooleanfalseReact 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: reduce freezes the surface after the first frame.