Components

Avatar Reveal

Overlapping avatars that pop in with an elastic blur, then the caption slides in from the right.

A social-proof cluster: three stacked avatars scale and unblur in from the left with elastic.out, then the caption slides in from the right. Driven by GSAP.

New tab
Team member 1
Team member 2
Team member 3

2,000+ teams shipping faster this week.

Installation

pnpm dlx shadcn@latest add @tween-ui/avatar-reveal

Usage

app/page.tsx
app/page.tsx
import AvatarReveal from '@/components/tweenui/avatar/avatar-reveal';
 
export default function Page() {
  return <AvatarReveal>2,000+ teams shipping faster this week.</AvatarReveal>;
}

Props

PropTypeDefaultDescription
avatarsAvatarRevealItem[]three Unsplash portraitsFaces to stack. Each has src + alt.
childrenReactNode2,000+ teams shipping…Caption beside the stack.
classNamestring—Extra classes for the root.

Accessibility

Under prefers-reduced-motion: reduce the avatars and caption appear in their final state with no scale, blur, or slide. Each image has an alt label.