Skip to content

Bouncing dots in WordPress

Three dots bouncing one after another, for a short wait or a message being typed.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

loader-points.php
<?php
/**
 * Plugin Name: Forge, Points rebondissants
 * Description: Trois points qui rebondissent l'un après l'autre, pour une attente courte ou un message en cours d'écriture. Ajoute la composition « Points rebondissants » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-loader-points
 *
pattern.html
<!-- wp:html -->
<div class="dots" role="status">
        <span class="dots__row" aria-hidden="true"><span></span><span></span><span></span></span>
        <span>Votre conseillère écrit</span>
      </div>
<!-- /wp:html -->
style.css
:root {
  --dots-bg: #ede9fe;
  --dots-dot: #6d28d9;
  --dots-text: #3b2a73;
  --demo-loader-points-bg: #faf8ff;
  --demo-loader-points-text: #1e1145;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {
    --dots-bg: #1e1240;
    --dots-dot: #c4b5fd;

Free component: copy it freely, including for commercial projects.

Loaders components in WordPress
  • A button's state while a form is submitting: a small spinner and a "Sending" label.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A thin bar where a segment slides continuously, for a load of unknown duration.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A spinning ring with a colored segment, alongside a loading text.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component