Glass OrbPRO
A dark glass sphere with silky smoke churning inside that swirls faster and glows brighter with the voice.
Code
2 files · 241 lines of TypeScriptPRO
Glass Orb is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- Each pixel refracts into the sphere and steps through a twisted noise volume. Thin sheets where the field crosses a threshold read as silk, not fog.
- The voice drives how fast the smoke turns as well as how bright it is, so speech looks like it stirs the orb. Thinking winds the volume into a tighter vortex.
- Glass cues do the realism: a caustic crescent where the sphere focuses the key light, a fresnel rim, a crisp window highlight, and a slight 4% scale with the level.
- The tint is dark so it holds up on light and dark surfaces, and colors come from the --orb tokens. With reduced motion it renders one still frame.
Usage
Example
<OrbGlass state="speaking" level={audioLevel} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| state | "idle" | "listening" | "thinking" | "speaking" | "idle" | Assistant state. Changes ease in over about half a second. |
| level | number | — | Audio level 0–1, e.g. from an AnalyserNode. Leave it out to simulate one per state. |
| size | number | string | 120 | Diameter in px, or any CSS length. |
| className | string | — | Classes for the wrapper. |