Spinners Animation — Reference

Bouncing Dots

The Bouncing Dots is a CSS animation component that three sequentially bouncing dots that create a friendly, minimal loading indicator. Perfect for chat typing indicators, inline loading states, or lightweight content placeholders. It ships as self-contained HTML and CSS with no external dependencies, making it drop-in ready for any modern web project regardless of framework or build system.

dotsbouncingloaderthree-dots

When to use the Bouncing Dots

Performance characteristics

How it compares

Unlike equivalent JavaScript implementations, the Bouncing Dots does not require any runtime library — there is nothing to install, bundle, or load asynchronously.

Compared to animated GIFs or video embeds, this CSS component is resolution-independent, theme-able via CSS custom properties, and weighs a fraction of the equivalent media file.

Source code

CSS

css
.dots { display: flex; gap: 8px; align-items: center; justify-content: center; }
    .dot {
      width: 12px; height: 12px;
      background: #22c55e;
      border-radius: 50%;
      animation: bounce 0.8s ease-in-out infinite;
    }
    .dot:nth-child(2) { animation-delay: 0.1s; }
    .dot:nth-child(3) { animation-delay: 0.2s; }
    @keyframes bounce {
      0%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-12px); }
    }
    body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }

HTML

html
<div class="dots">
    <span class="dot"></span><span class="dot"></span><span class="dot"></span>
  </div>

Full source

html
<!DOCTYPE html>
<html>
<head>
  <style>
    .dots { display: flex; gap: 8px; align-items: center; justify-content: center; }
    .dot {
      width: 12px; height: 12px;
      background: #22c55e;
      border-radius: 50%;
      animation: bounce 0.8s ease-in-out infinite;
    }
    .dot:nth-child(2) { animation-delay: 0.1s; }
    .dot:nth-child(3) { animation-delay: 0.2s; }
    @keyframes bounce {
      0%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-12px); }
    }
    body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }
  </style>
</head>
<body>
  <div class="dots">
    <span class="dot"></span><span class="dot"></span><span class="dot"></span>
  </div>
</body>
</html>

Frequently asked questions

How do I add the Bouncing Dots to my project?

Copy the full source code from the code block on this page. Paste the <style> block into your stylesheet (or a <style> tag in your HTML head) and the HTML markup into your template. No npm install or build step is required — the animation is self-contained. To customize colors, speed, or size, use Grepped's workspace at grepped.dev/animations/spinners/bouncing-dots.

Is the Bouncing Dots free to use?

Yes. All Grepped preset animations are free to use in personal and commercial projects. You may copy, modify, and redistribute the code without attribution. The only limitation is that you may not resell the presets themselves as part of a competing animation library.

Does the Bouncing Dots work on mobile browsers?

Yes. The Bouncing Dots uses standard CSS animations and transforms that are supported in all modern mobile browsers — Chrome for Android, Safari on iOS 9+, Samsung Internet, and Firefox for Android. Where JavaScript is used for interactivity (e.g. cursor effects), it falls back gracefully on touch devices.

Can I customize the Bouncing Dots's colors, speed, or size?

Yes. Open the live customization workspace at grepped.dev/animations/spinners/bouncing-dots to adjust the animation with real-time sliders, color pickers, and toggles — no code required. For deeper changes, the source code uses CSS custom properties (variables) so you can edit them directly in your stylesheet.

Want to customize this animation or generate a new one from a text prompt?

Open in Workspace — it's free