Communitygithub.com

map-route

Makes a 3D map route vertical animation (1080x1920) for a reel using three.js. Features a clean white 3D city with parks and a river, a coloured route drawing itself while the camera follows, a bouncing red destination pin, a live countdown ETA card, and a destination card. Use when the user asks for /map-route, an animated route, a "from A to B" map, a journey, or a commute animation.

What is map-route?

map-route is a Claude Code agent skill that makes a 3D map route vertical animation (1080x1920) for a reel using three.js. Features a clean white 3D city with parks and a river, a coloured route drawing itself while the camera follows, a bouncing red destination pin, a live countdown ETA card, and a destination card. Use when the user asks for /map-route, an animated route, a "from A to B" map, a journey, or a commute animation.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/map-route

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

3D Map Route (map-route)

┌──────────────────────┐
│ [▲ 9 min]            │  ETA card counts down, then "Arrived"
│      ┌Iron Yard Gym┐ │  destination card after the pin lands
│  ▒▒   ▒▒   📍  ▒▒    │  white 3D blocks, parks, a river
│  ▒▒ ━━━━━━━┛   ▒▒    │  the route draws itself, the camera rides along
│  ▒▒ ┃  ▒▒      ▒▒    │  and pulls back at the end
└──────────────────────┘

Setup Check

SKILL_DIR is the directory containing this SKILL.md file (check the path in <skills>).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<directory containing this SKILL.md>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/node_modules/three/build/three.module.js" ] || bash "$KIT/setup.sh"

Requires ffmpeg, node (18+), python3 (3.9+), and WebGL via headless Chrome.

Steps

  1. Gather trip details. Get the destination name, travel time (minutes), and distance (e.g. "home to the gym, 2.8 km, 9 min"). If only one of time or distance is given, estimate the other (walking ~12 min/km, cycling ~4 min/km, urban driving ~2 min/km) and tell the user.
  2. Write the spec. Create <name>.map.json using the schema below.
  3. Validate & quick snapshot.
    python3 "$SKILL_DIR/build.py" <name>.map.json --check
    python3 "$SKILL_DIR/build.py" <name>.map.json --snap 3.8
    
    Inspect the snapshot PNG with read_file before doing the full 3D render.
  4. Render. Run:
    python3 "$SKILL_DIR/build.py" <name>.map.json
    
    Takes ~1.5 minutes (WebGL in headless Chrome; a sub_timeline_readiness_timeout warning from HyperFrames is normal).
  5. Visual QA (Required). Inspect <name>.map.sheet.jpg with read_file:
    • The destination card fits completely inside the red safe-area box without clipping.
    • Street/place labels do not collide with the ETA card or destination card.
  6. Hand over. Return clickable links to the .mp4 and .sheet.jpg.

Spec Schema

{
  "destination": "Iron Yard Gym",
  "minutes": 9,
  "distance": 2.8,
  "unit": "km",
  "places": ["North Quay", "Botanic Gardens", "Market Hall", "Elm Park", "The Canal"],
  "accent": "#2f7cf6",
  "seed": 7
}
  • destination, minutes, distance (required). Keep destination <= ~26 chars.
  • unit: "km" or "mi".
  • places: 5 short grey labels at fixed map spots: [near start, far-left park, mid-route block, far-right park, river]. Use local-sounding names or "" to hide any label.
  • accent: 6-digit hex color for the route, moving dot, and ETA icon. The pin stays red.
  • seed: Any integer; changes building and park layout.
  • hold (optional): Extra seconds at the end.
  • out (optional): Custom output .mp4 path.

Custom Route Shape (Advanced)

The default path goes up, right, up, right. To change it, copy "$SKILL_DIR/template.html" next to the spec, add "template": "template.html" to the spec, and edit WP ([x, z] waypoints sitting on street grid multiples of 4; x in -36..36, z in -88..24, north is -z). Update the final pullback target (new THREE.Vector3(3, 0, -27)) and LBL positions to match, then verify with --snap 3.8.

Taste Rules

  • Short, realistic place names; destination card holds ~26 characters comfortably.
  • Keep it clean: one route, one red pin, no extra arrows or callouts.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

graph

Makes a minimal vertical (1080x1920) line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one large number counts up with the tip and lands on the final value. Use when the user asks for /graph, a growth chart, a "0 to 100K" number counter, an animated stat, or a minimal metric line chart.

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

minimalistic-graphics

Makes a minimal black-and-white line-art vertical animation (1080x1920) for a reel. Thin outlined steps rise one by one, a white dot hops up them, an orbit with sparks draws around the dot at the top, and one quiet lowercase line swaps to a second line. Use when the user asks for /minimalistic-graphics, simple black-and-white motion graphics, calm self-improvement visuals, or line art with one moving dot.

Related Skills