An animated AI orb avatar with blinking eyes, 12 color presets, 3 sizes, and 3 shapes.
Installation
Usage
How It Works
- Uses
motion/reactfor a squash-and-stretchwhileTapspring animation. - Two
Eyesub-components render with a CSS@keyframes av-blinkanimation that fires every 3.6 s, with a 60 ms delay on the right eye for a natural look. - Noise and grain textures are rendered as inline SVG
<feTurbulence>filters layered withmix-blend-overlayfor depth. - A radial shine overlay and a blurred shadow
divcreate the 3-D orb illusion entirely with CSS — no images. - Each
colormaps to a unique gradient, box-shadow glow, iris gradient, and shine stop via thePRESETSrecord. useId()ensures every instance gets a unique SVG filterid, preventing cross-instance bleed.
API Reference
Avatar
| Prop | Type | Default |
|---|---|---|
color? | "blue" | "orange" | "red" | "green" | "purple" | "yellow" | "cyan" | "pink" | "indigo" | "lime" | "turquoise" | "violet" | "blue" |
size? | "sm" | "md" | "lg" | "md" |
shape? | "circle" | "square" | "squircle" | "circle" |
blinking? | boolean | true |
className? | string | - |