Skip to content

Animated examples

Samy K. Abushanab edited this page Nov 6, 2026 · 1 revision

Published from docs/examples.md at 150f808. Edit the source in the repository, not this page.

These animated SVGs were exported from example diagrams that ship with illustrate. Each one uses a different arrow style. They play in a README with no script, and show the still figure to readers who ask for reduced motion.

To reproduce one, run the command from the repository root. The output lands next to the HTML.

draw: arrows draw on, then stop

Sequence diagram: a client calls an API with a bearer token; it gets the body back when the token is valid, or a 401, then refreshes the token with the auth service and retries. Each arrow draws on in turn.

Each arrow draws from its source to its tip, then its arrowhead appears. It ends on the complete figure.

python skills/illustration-tools/skills/illustrate/scripts/export_diagram.py docs/media/example-sequence-oauth.html --animated --arrows=draw

Editable source: example-sequence-oauth.html

flow: moving dashes

Lead intake flowchart: web form and CSV import feed an intake API, a validity check sends good records to a sync service and its database and sends bad ones back to be fixed. The arrows are dashed lines moving toward their tips.

Each arrow becomes dashes that keep moving toward the tip. It loops.

python skills/illustration-tools/skills/illustrate/scripts/export_diagram.py docs/media/example-lead-intake.html --animated --arrows=flow

Editable source: example-lead-intake.html

pulse: a dot travels each arrow

State machine of an article: draft, in review, published, and archived, with submit, approve, expire, and purge transitions and a reject loop back to draft. A dot travels along each transition.

A dot rides along each arrow in its direction. It loops.

python skills/illustration-tools/skills/illustrate/scripts/export_diagram.py docs/media/example-state.html --animated --arrows=pulse

Editable source: example-state.html

chevrons: chevrons slide along

Newsletter publication lifecycle: draft, editing, scheduled, sending, and sent on the main rail; approval and delivery retry in a recovery band; cancelled and failed as end states. Small chevrons slide along each transition.

Small chevrons slide along each arrow. It loops.

python skills/illustration-tools/skills/illustrate/scripts/export_diagram.py docs/media/example-state-lifecycle.html --animated --arrows=chevrons

Editable source: example-state-lifecycle.html

draw-flow: draw on, then keep flowing

Flowchart titled "Should you write this as a skill?": a new workflow is done manually once, then two yes-or-no questions lead to keeping it manual, writing a project note, or writing a skill. Arrows draw on, then a slow accent dash keeps flowing.

Arrows draw on like draw, then a slow accent dash keeps flowing. It loops after the draw.

python skills/illustration-tools/skills/illustrate/scripts/export_diagram.py docs/media/example-flowchart.html --animated --arrows=draw-flow

Editable source: example-flowchart.html

Sizes

File Arrow style Size
example-sequence-oauth.animated.svg draw 17 KB
example-lead-intake.animated.svg flow 8 KB
example-state.animated.svg pulse 10 KB
example-state-lifecycle.animated.svg chevrons 15 KB
example-flowchart.animated.svg draw-flow 12 KB

Make your own

  • Ask the skill: "export it as an animated SVG with pulsing arrows".
  • For a GIF, use --gif instead of --animated. Add --theme dark or --fps 10 if needed. GIFs need Playwright and Pillow, and cannot follow reduced motion.
  • Embed the file like any image. Write alt text that describes the complete figure, and keep the HTML source beside it.

Related

Clone this wiki locally