# Legend (overlay): Key in a Corner: Label & callout element for AI agents

> A key for the marks in any Afterglow scene: a small card lands in a corner and its rows (orb, ring, dot or line swatch + label) rise in order. Transparent; mount it on a track above the host scene.

Canonical page: https://agentframes.ai/elements/afterglow/legend/
Markdown: https://agentframes.ai/elements/afterglow/legend.md

## Overview

- Name: Legend (overlay): Key in a Corner (`legend`), an element: one HyperFrames block per size
- Part of: the [Afterglow](https://agentframes.ai/packs/afterglow.md) pack (30 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: A key for the marks in any Afterglow scene: a small card lands in a corner and its rows (orb, ring, dot or line swatch + label) rise in order. Transparent; mount it on a track above the host scene.
- Pack: [Afterglow](https://agentframes.ai/packs/afterglow.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 none; avoid none
- Typical duration: 4s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/afterglow/legend.mp4
- Poster: https://agentframes.ai/media/afterglow/legend.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Afterglow pack. Add a `legend` beat to plan.json on a `k` canvas with slots `corner` and `items` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `corner` | enum | corner | {"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]} | top-right |
| `items` | string | items | JSON string. {"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","properties":{"mark":{"type":"string","enum":["orb","ring","dot","line"]},"label":{"type":"string","minLength":1,"maxLength":28}},"required":["label"]}} | [{"mark":"orb","label":"Days you started"},{"mark":"ring","label":"Days you waited"}] |

## What your agent can change

**Legend (overlay): Key in a Corner**. Native 1920×1080, 4s at 30fps. Transparent overlay: mount it on a track above a host scene.

A key for the marks in any Afterglow scene: a small card lands in a corner and its rows (orb, ring, dot or line swatch + label) rise in order. Transparent; mount it on a track above the host scene.

**Motion.** Card rises; rows rise 0.45 s apart; fades out over the last 0.4 s.
**Why it moves.** attention: tells the viewer what the marks mean before they read the chart.

### Mount

Copy every manifest file into your project (plus `af-afterglow-runtime`). Mount with a unique host id, `data-composition-id="af-afterglow-legend-16x9"`,
`data-composition-src="compositions/af-afterglow-legend-16x9.html"`, `data-duration="4"` 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).

- `corner`: {"type":"string","enum":["top-left","top-right","bottom-left","bottom-right"]}
- `items` (required): {"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","properties":{"mark":{"type":"string","enum":["orb","ring","dot","line"]},"label":{"type":"string","minLength":1,"maxLength":28}},"required":["label"]}}


Style: `colourway`, `accent`.

### Timing

4s. Everything has landed by 2.4s (60%), then the scene holds for reading (bubbles slow to a residual drift, the glow breathes,
text stays still).

### Example

```json
{
  "corner": "top-right",
  "items": "[{\"mark\":\"orb\",\"label\":\"Days you started\"},{\"mark\":\"ring\",\"label\":\"Days you waited\"}]"
}
```

## FAQ

### What can my AI agent change in Legend (overlay): Key in a Corner?

Your agent fills the `corner` and `items` 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 Afterglow look.

### Which aspect ratios does Legend (overlay): Key in a Corner support?

Legend (overlay): Key in a Corner is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4s.

### How do I get Legend (overlay): Key in a Corner?

Legend (overlay): Key in a Corner is included in the Afterglow 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 Afterglow

- [Pointer Callout (overlay)](https://agentframes.ai/elements/afterglow/pointer-callout.md): Points at one spot on any Afterglow scene (or other footage): a ring draws around the target and pulses once, a leader line reaches out and a card lands with a label and optional detail. Transparent background; mount it on a track above the host scene.
- [Evidence Quote: The Orb Opens It](https://agentframes.ai/elements/afterglow/evidence-quote.md): A sourced quote: the orb lands as the opening mark, the quote builds word by word, a short rule draws and the source rises.
- [Key Phrase: Underlined and Made Bold](https://agentframes.ai/elements/afterglow/key-phrase.md): Emphasise part of a sentence: the sentence builds in soft type, then the white dot runs under the key phrase drawing a glowing underline, and the phrase turns heavy as it passes.
- [Caution: The Amber Ring](https://agentframes.ai/elements/afterglow/caution.md): A warning: an amber ring with an exclamation mark pops in and pulses once, the warning builds and the note rises under it.

## Community

Coming soon.
