---
title: Avatar Group
description: An animated avatar group that displays overlapping user images and smoothly shifts each avatar forward on hover to highlight it.
author:
name: imskyleen
url: https://github.com/imskyleen
---
## AvatarGroup
An animated avatar group built with TailwindCSS and Motion, where avatars gently shift forward on hover to highlight each user.
For a CSS-only version with a mask effect that blends seamlessly into any background, check out the [AvatarGroupMask](#avatargroupmask) component.
### Installation
### Usage
```tsx
{AVATARS.map((avatar, index) => (
{avatar.fallback}
{avatar.tooltip}
))}
```
### Examples
#### Bottom translation
### Props
#### AvatarGroup
#### AvatarGroupTooltip
## AvatarGroupMask
A sleek, CSS-only avatar group using TailwindCSS for the translate animation and a mask effect. Perfect for layered or custom backgrounds — inspired by [Jhey](https://codepen.io/jh3y/pen/yyLmmMW)'s awesome work.
You need **TailwindCSS 4.1 or higher** to use this component.
### Installation
### Usage
```tsx
{AVATARS.map((avatar, index) => (
{avatar.fallback}
{avatar.tooltip}
))}
```
### Examples
#### Bottom translation
**Note:** Children's avatars must have a `data-slot="avatar"` attribute.
### Props
#### AvatarGroup
#### AvatarGroupTooltip
## Credits
- Credits to [Jhey](https://codepen.io/jh3y/pen/yyLmmMW) for the inspiration.