# Typing Indicator

> A chat bubble with three softly rising dots while someone types.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: chat, typing, dots, bubble, message
- Live preview: https://copy-css.com/snippets/typing-indicator
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="typing-indicator" role="status" aria-label="Someone is typing">
  <span></span><span></span><span></span>
</div>
```

## CSS

```css
.typing-indicator {
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a1a1aa;
  animation: typing-indicator-rise 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-indicator-rise {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-indicator span {
    animation-duration: 2.4s;
  }
}
```

## Notes

- This CSS Typing Indicator is 30 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, box shadows and Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
