A horizontal company timeline where a moving marker reveals each milestone, labels popping up above and below the line.
Our story ╭──────────────╮ ╭───────────────╮ ╭────────────╮ ╭─────────────────╮ │ 2019 │ │ 2020 │ │ 2022 │ │ 2024 │ │ Founded │ │ v1.0 ships │ │ Series A │ │ 100k users │ │ first commit │ │ public launch │ │ $8M raised │ │ in 90 countries │ ╰───────┬──────╯ ╰───────┬───────╯ ╰──────┬─────╯ ╰────────┬────────╯ │ │ │ │ ━━━━●━━━━━━━━━━●━━━━━━━━━━━●━━━━━━━━━━●━━━━━━━━━━●━━━━━━━━━━●━━━━━━━━━━━●━━━━━━━━━━●━◆──▶ │ │ │ │ ╭───────┴──────╮ ╭───────┴───────╮ ╭─────────┴────────╮ ╭────────┴───────╮ │ 2020 │ │ 2021 │ │ 2023 │ │ 2025 │ │ Seed round │ │ 10k users │ │ Mobile apps │ │ v3.0 │ │ $1.2M raised │ │ word of mouth │ │ phone and tablet │ │ rebuilt engine │ ╰──────────────╯ ╰───────────────╯ ╰──────────────────╯ ╰────────────────╯ 8 of 8 milestones 2019 to today
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="timeline"></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/timeline.js";
export function Timeline() {
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 timeline<!-- Export the GIF below in the look you picked, commit it, then: -->
<p align="center">
<img src="assets/timeline.gif" alt="Timeline, animated ASCII art" width="720">
</p>Add the animated ASCII art piece "timeline" (Timeline) 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="timeline"></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/timeline
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.
/* timeline: a horizontal timeline whose moving marker reveals milestones above and below the line. */
import { Grid, palette, clamp } from "../lib/kit.js";
export const meta = {
slug: "timeline",
name: "Timeline",
category: "explainers",
note: "A horizontal company timeline where a moving marker reveals each milestone, labels popping up above and below the line.",
tags: ["timeline", "history", "roadmap", "diagram", "about"],
cols: 96, rows: 17, fps: 24,
palette: palette(["#e6edf3", "#8b949e", "#30363d", "#79c0ff", "#7ee787", "#ffa657", "#d2a8ff", "#f778ba", "#f2cc60", "#56d4dd", "#ffffff", "#6e7681"]),
};
const MS = [
["2019", "Founded", "first commit", "3"], ["2020", "Seed round", "$1.2M raised", "4"], ["2020", "v1.0 ships", "public launch", "5"],
["2021", "10k users", "word of mouth", "6"], ["2022", "Series A", "$8M raised", "7"], ["2023", "Mobile apps", "phone and tablet", "8"],
["2024", "100k users", "in 90 countries", "9"], ["2025", "v3.0", "rebuilt engine", "3"],
];
export default function create() {
const { cols, rows } = meta;
const g = new Grid(cols, rows);
const AY = 8, X0 = 4, X1 = cols - 5;
const mx = (i) => Math.round(X0 + 4 + (i / (MS.length - 1)) * (X1 - X0 - 8));
return (t) => {
g.clear();
const LOOP = 12, lt = t % LOOP;
const p = clamp(lt / 9.5);
const ease = p < 0.5 ? 2 * p * p : 1 - Math.pow(-2 * p + 2, 2) / 2;
const fade = clamp((lt - 11.3) / 0.6);
const head = X0 + ease * (X1 - X0);
// axis: travelled part bright
for (let x = X0; x <= X1; x++) g.set(x, AY, x <= head ? "━" : "─", x <= head && fade < 0.5 ? "a" : "2");
g.set(X1 + 1, AY, "▶", "2");
// year ticks
MS.forEach(([yr, title, sub, co], i) => {
const x = mx(i);
const passed = head >= x && fade < 0.5;
const age = (head - x) / 3;
g.set(x, AY, passed ? "●" : "○", passed ? co : "b");
const up = i % 2 === 0;
if (!passed) return;
const grow = clamp(age);
if (grow > 0.2) g.set(x, up ? AY - 1 : AY + 1, "│", co);
if (grow >= 0.5) {
const by = up ? AY - 6 : AY + 2;
const w = Math.max(title.length, sub.length) + 4;
const bx = Math.max(0, Math.min(cols - w, x - Math.floor(w / 2)));
g.box(bx, by, w, 5, "round", grow >= 1 ? co : "b");
g.set(x, up ? by + 4 : by, up ? "┬" : "┴", co);
g.text(bx + 2, by + 1, yr, "1");
g.text(bx + 2, by + 2, title, grow >= 1 ? "0" : "1");
g.text(bx + 2, by + 3, sub, "1");
}
});
// moving marker
if (fade < 0.5 && p < 1) {
g.set(Math.round(head), AY, "◆", "a");
g.set(Math.round(head) - 1, AY, "━", "b");
}
g.text(1, 0, "Our story", "0");
g.text(cols - 14, rows - 1, "2019 to today", "1");
const reached = MS.filter((_, i) => head >= mx(i) && fade < 0.5).length;
g.text(1, rows - 1, reached + " of " + MS.length + " milestones", "1");
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.