Twelve classic terminal spinners side by side, each labelled with its name and frame count.
── spinners ──────────────── 12 styles · own frame rates ─ name frames fps preview ──────────────────────────────────────────────────────── ⠦ braille 10 12 ⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧ - line 4 8 -\|/-\|/-\|/-\|/-\|/-\ ⣟ dots 8 10 ⣟⣯⣷⣾⣽⣻⢿⡿⣟⣯⣷⣾⣽⣻⢿⡿⣟⣯⣷⣾⣽⣻ ├ arc 8 8 ├┌┬┐┤┘┴└├┌┬┐┤┘┴└├┌┬┐┤┘ ⠠ bounce 8 10 ⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄ • pulse 4 6 •·•●•·•●•·•●•·•●•·•●•· █ grow 14 14 █▇▆▅▄▃▂▁▂▃▄▅▆▇█▇▆▅▄▃▂▁ ▗ quadrant 4 6 ▗▖▘▝▗▖▘▝▗▖▘▝▗▖▘▝▗▖▘▝▗▖ → arrows 8 8 →↘↓↙←↖↑↗→↘↓↙←↖↑↗→↘↓↙←↖ ■ toggle 2 4 ■□■□■□■□■□■□■□■□■□■□■□ ▓ shade 6 8 ▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒ [ ball 10 10 [ ●] loading. ──────────────────────────────────────────────────────────
Paste two lines into any page, use it from React, play it in a terminal, put a GIF in a README, or hand the Agent prompt to your coding agent. Every tab follows the look you pick above.
<script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script>
<ascii-art piece="spinner-set"></ascii-art>// npm install ascii-magic-art
import { useEffect, useRef } from "react";
import { play } from "ascii-magic-art/runtime/player.js";
import * as piece from "ascii-magic-art/pieces/spinner-set.js";
export function SpinnerSet() {
const ref = useRef(null);
// play() draws the piece on a canvas in your look and returns stop(), which React runs on unmount
useEffect(() => play(ref.current, piece), []);
return <pre ref={ref} style={{ fontSize: 10, fontFamily: "Menlo, Consolas, monospace" }} />;
}npx ascii-magic-art spinner-set<!-- Export the GIF below in the look you picked, commit it, then: -->
<p align="center">
<img src="assets/spinner-set.gif" alt="Spinner Set, animated ASCII art" width="720">
</p>Add the animated ASCII art piece "spinner-set" (Spinner Set) from ASCII Magic to this project.
1. Load the script once, in the browser only (in SSR frameworks such as Next.js, load it on the client):
<script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script>
2. Put the piece where it fits best, such as the hero, a loading state, an empty state or the 404 page:
<ascii-art piece="spinner-set"></ascii-art>
3. Keep a real heading or text next to it (the art is decoration), and size it with the size attribute or CSS.
Preview and options: https://www.ascii-magic.com/ascii/spinner-set
Rules for coding agents: https://www.ascii-magic.com/ascii/use/ai-coding-agentsPause on the frame you like, pick a look, then download it at an exact size.
MIT licensed and open source on GitHub. It imports one small helper file, kit.js. This is the animation itself: what gets drawn in every frame. The look you pick is applied on top by the player, like a filter, so this file stays the same in every look while the snippets above change with it. Edit it to change the animation; see the docs to make your own.
/* spinner-set: a labelled grid of twelve classic terminal spinners. */
import { Grid, palette } from "../lib/kit.js";
export const meta = {
slug: "spinner-set",
name: "Spinner Set",
category: "screens",
note: "Twelve classic terminal spinners side by side, each labelled with its name and frame count.",
tags: ["loader", "spinner", "terminal", "cli", "readme"],
cols: 58, rows: 16, fps: 20,
palette: palette(["#e6edf3", "#8b949e", "#7ee787", "#79c0ff", "#ffa657", "#ff7b72", "#d2a8ff", "#484f58", "#f2cc60", "#56d4dd"]),
};
const BALL = [];
for (let i = 0; i < 10; i++) {
const p = i < 5 ? i : 9 - i;
BALL.push("[" + " ".repeat(p) + "●" + " ".repeat(4 - p) + "]");
}
const S = [
["braille", "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏", 12, "3"],
["line", "-\\|/", 8, "0"],
["dots", "⣾⣽⣻⢿⡿⣟⣯⣷", 10, "2"],
["arc", "┤┘┴└├┌┬┐", 8, "6"],
["bounce", "⠁⠂⠄⡀⢀⠠⠐⠈", 10, "4"],
["pulse", "·•●•", 6, "5"],
["grow", "▁▂▃▄▅▆▇█▇▆▅▄▃▂", 14, "8"],
["quadrant", "▖▘▝▗", 6, "9"],
["arrows", "←↖↑↗→↘↓↙", 8, "3"],
["toggle", "■□", 4, "2"],
["shade", "░▒▓█▓▒", 8, "6"],
["ball", BALL, 10, "4"],
];
export default function create() {
const g = new Grid(meta.cols, meta.rows);
const W = meta.cols;
return (t) => {
g.clear();
g.hline(0, W - 1, 0, "─", "7"); g.hline(0, W - 1, meta.rows - 1, "─", "7");
g.text(2, 0, " spinners ", "0");
g.text(W - 30, 0, " 12 styles · own frame rates ", "1");
g.text(3, 1, " name", "1"); g.text(17, 1, "frames", "1"); g.text(25, 1, "fps", "1"); g.text(31, 1, "preview", "1");
g.hline(1, W - 2, 2, "─", "7");
// braille cells can render wider in some fonts, so each row ends with its preview strip
S.forEach(([name, fr, fps, c], i) => {
const y = 3 + i;
const n = fr.length, f = Math.floor(t * fps);
const cur = fr[f % n];
g.text(3, y, cur, c);
g.text(6, y, name, "0");
g.text(17, y, String(n).padStart(3), "1");
g.text(25, y, String(fps).padStart(3), "1");
if (name === "ball") {
g.text(31, y, cur, c);
g.text(39, y, "loading" + ".".repeat(Math.floor(t * 2) % 4), "1");
} else {
for (let k = 0; k < 22; k++) g.set(31 + k, y, fr[(f + k) % n], k % 2 ? c : "7");
}
});
return g.frame();
};
}
/YOUR OWN
The pieces here are hand-built animations. To turn your own photo, logo or video into animated ASCII, use the ASCII Magic editor.