Bubble Cluster, animated React component
Contacts packed into one cluster of avatar bubbles sized by how close they are, sitting on a liquid backdrop. Switch groups and everyone springs to new places and sizes while people outside the group shrink away.
- Pro
- Motion Effects
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
MomDadRiyaArjunJoIvy
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| people | ClusterPerson[] | 12 sample contacts | Everyone who can appear, as { id, name, hue }; hue (0-360) tints the avatar gradient. |
| groups | Record<string, Record<string, number>> | Family, Close friends, Work | Group name to { person id: closeness 1-5 }. Closeness sets bubble size; people left out of a group hide in it. |
| autoplay | boolean | false | Steps through the groups every 2.4s until someone presses the cluster or the switcher. |