# Map Fold (transition): Transition element for AI agents

> A full-frame handover: a walking map unfolds across the frame in four accordion panels, lies flat over the cut with the cover tag on it, then folds away to the far edge to reveal the next scene.

Canonical page: https://agentframes.ai/elements/contour/map-fold/
Markdown: https://agentframes.ai/elements/contour/map-fold.md

## Overview

- Name: Map Fold (transition) (`mapFold`), an element: one HyperFrames block per size
- Part of: the [Contour](https://agentframes.ai/packs/contour.md) pack (41 of 50). Available only through the All-access subscription.
- Category: Transition
- Purpose: A full-frame handover: a walking map unfolds across the frame in four accordion panels, lies flat over the cut with the cover tag on it, then folds away to the far edge to reveal the next scene.
- Pack: [Contour](https://agentframes.ai/packs/contour.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Explorer (map buff, woodland green, route pink) (`explorer`), Coast (sand, sea blue, red route) (`coast`), Winter (snow white, slate contours, orange route) (`winter`); avoid none
- Typical duration: 1.1s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/contour/map-fold.mp4
- Poster: https://agentframes.ai/media/contour/map-fold.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Contour pack. Add a `mapFold` beat to plan.json on a `explorer` canvas with slots `direction` and `label` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `direction` | enum | direction | {"type":"string","enum":["right","left"]} | right |
| `label` | string | label | {"type":"string","minLength":0,"maxLength":18} |  |

## What your agent can change

**Map Fold (transition)**. Native 1920×1080, 1.1s at 30fps. Transparent: mount it on a track above the scenes.

A full-frame handover: a walking map unfolds across the frame in four accordion panels, lies flat over the cut with the cover tag on it, then folds away to the far edge to reveal the next scene.

**Motion.** The panels unfold from 88° (ease in-out) from the incoming edge, cover the frame from 0.5 to 0.62 s, then fold up toward the outgoing edge; alternate panels shade as they turn.
**Why it moves.** change: opening the next fold of the map is the next place.

### Mount

Copy every manifest file into your project (plus `af-contour-runtime`). Mount with a unique host id, `data-composition-id="af-contour-map-fold-16x9"`,
`data-composition-src="compositions/af-contour-map-fold-16x9.html"`, `data-duration="1.1"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `direction`: {"type":"string","enum":["right","left"]}
- `label`: {"type":"string","minLength":0,"maxLength":18}

- Mount it on track 1 (`style="z-index:10"`) starting 0.56 s before the cut, and set the outgoing scene's `exit` to `cut`. `label` (optional) joins the host name on the cover tag.

Style: `colourway` (explorer, coast, winter), `brandColour` and `accent` (optional hex), `agency`.

### Timing

1.1s. Full cover from 0.5 s to 0.62 s; mount it 0.56 s before the cut.

### Example

```json
{
  "direction": "right",
  "label": ""
}
```

## FAQ

### What can my AI agent change in Map Fold (transition)?

Your agent fills the `direction` and `label` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Contour look.

### Which aspect ratios does Map Fold (transition) support?

Map Fold (transition) is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 1.1s.

### How do I get Map Fold (transition)?

Map Fold (transition) is included in the Contour pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Contour

- [Contour Ripple Transition](https://agentframes.ai/elements/contour/contour-ripple.md): Contour rings ripple out from the centre and fill with map paper to cover the cut, then ripple back away.
- [Route Band Transition](https://agentframes.ai/elements/contour/route-band.md): A broad band in the route colour edged with walking dots sweeps across on a diagonal and covers the cut.
- [Grid Fill Transition](https://agentframes.ai/elements/contour/grid-fill.md): The map grid's squares fill with paper in a sweep from the top-left to cover the cut, then clear.
- [Status Tab](https://agentframes.ai/elements/contour/status-tab.md): The listing status on the walking map: the cabin pin drops, the exterior unfolds from it as a folded map panel, and the status tab slides out under it in the route colour with a handwritten detail. On a swap the tab flips over to the new status in ink (Last few dates → Fully booked).

## Community

Coming soon.
