Typing Dots

Three bouncing dots that mimic a chat typing indicator.

Tailwind CSS
<div class="flex items-center gap-1.5 rounded-2xl bg-neutral-100 px-4 py-3 dark:bg-neutral-800">
  <span class="h-2 w-2 animate-bounce rounded-full bg-neutral-500 [animation-delay:-0.3s]"></span>
  <span class="h-2 w-2 animate-bounce rounded-full bg-neutral-500 [animation-delay:-0.15s]"></span>
  <span class="h-2 w-2 animate-bounce rounded-full bg-neutral-500"></span>
</div>

Free to use in personal and commercial projects. No attribution required.

Variants

Same component, different looks. Preview each one live and copy the code you like.

Brand color

Tint the dots with your brand color when the assistant represents your product.

Tailwind CSS

Dark bubble

The dark bubble matches AI chat interfaces with a dark theme.

Tailwind CSS

Large

Use the large size in spacious chat layouts where the indicator should be easy to spot.

Tailwind CSS

About this typing dots

Typing dots are the universal signal for someone is responding. Three dots bounce in sequence inside a chat bubble, and users instantly read it as a live human or an AI composing a reply. It buys you a few seconds of patience while content loads.

Each dot uses animate-bounce with a negative animation-delay. Negative delays start each dot partway through the bounce cycle, which staggers them into the classic wave without any keyframe code. The dots sit in a rounded bubble styled like a received message so the indicator drops straight into a chat layout.

Use it in chat windows, AI response placeholders, comment threads, and support widgets. Keep the bubble styling consistent with your other received messages so the indicator feels like part of the conversation.

Silence during a wait reads as abandonment. When a chat reply takes three seconds with no signal, users assume the app broke and start retyping or leaving. Typing dots are the cheapest possible reassurance: three bouncing dots that say someone, or something, is composing a reply. They buy patience that no spinner can, because they promise a message, not just activity.

The wave comes from negative animation-delays, a CSS feature that starts each dot mid-cycle instead of at the beginning. With delays of 0ms, 150ms and 300ms the dots fall into sequence using only Tailwind's animate-bounce, no custom keyframes needed. The dots sit in a rounded bubble styled like a received message, which means the indicator drops straight into any chat UI without extra framing.

Size the dots to their context: 6px dots inside chat bubbles, 8 to 10px for page-level loading states. Color them with your muted text tone so they read as system status, not brand decoration. On dark backgrounds, raise the dot opacity; dim dots on dark surfaces look like dead pixels. If the wait runs long, graduate from dots to a progress bar with a real percentage; dots promise imminence, and after fifteen seconds that promise is broken.

In group chats, bare dots without a name are a mystery: everyone sees the indicator and nobody knows who is about to speak. Always pair the dots with the typer's name or avatar, Priya is typing, whenever more than two participants exist. The dots say someone is coming; the name says who.

Where to use it

  • ✓ Chat windows showing the other person is typing
  • ✓ AI chatbots while the model streams its response
  • ✓ Comment threads while a reply is being posted
  • ✓ Support widgets while an agent connects

Customization tips

Resize the dots with h-2 w-2 or recolor them with any bg utility to match your theme. Adjust the -0.3s and -0.15s delays to speed up or slow down the wave, and drop the bubble wrapper if you want bare dots on your own background.

Design notes

When to use

Typing dots belong in chat interfaces at the exact moment the other side is composing, where they set the expectation that a reply is coming. The staggered bounce mimics real typing rhythm better than a static spinner, which is why users read it as a person rather than a machine. Keep the bubble styled like the chat's own messages so it feels native to the conversation.

What to avoid

Do not show typing dots for longer than a few seconds without a message arriving, the illusion breaks and users assume the app froze. Avoid using them as a generic loader outside chat, where the typing metaphor makes no sense. And do not pair them with a read receipt that contradicts the story, like typing dots after seen.

Accessibility

Announce the typing state once with a polite live region, then stay silent until the message arrives, since the bouncing dots themselves are invisible to screen readers. Honor prefers-reduced-motion with a static indicator.

Frequently asked questions

How do the negative animation delays work?

A negative delay tells the browser to start the animation as if it had already been running for that long. Each dot begins mid-bounce at a different phase, which creates the staggered wave with zero extra CSS.

Should I worry about prefers-reduced-motion?

Yes for production. Wrap the indicator in a media query or utility that pauses the bounce for users who request reduced motion, and show a static text like typing instead.

How do screen readers handle this?

Mark the dots aria-hidden and add a visually hidden status text such as User is typing. That way assistive technology announces the meaning once instead of reading meaningless dots.

How do I use typing dots as an AI chat thinking indicator?

Drop the three dots into the chat bubble where the message will appear, and remove them once the response streams in. Use a neutral gray dot color so the indicator feels like a placeholder, not a button. Announce it once to screen readers with role status and the text Responding, then hide it from the accessibility tree after.

Why do my three dots pulse in sync instead of one after another?

All three dots share the same keyframes, so without a per-dot offset they move together. Give each dot its own animation-delay, commonly 0s, 0.15s, and 0.3s, which creates the wave. This element uses negative delays so the stagger is already in motion on first paint.

How many dots should a typing indicator have?

Three is the convention users recognize from messaging apps, and it keeps the animation rhythm readable. Two feels like a glitch and four or more turns into a loading bar. Keep the dots small, around 8px, and evenly spaced so the wave reads as a single gesture.

Customize it with our tools