# Tag Swing (transition): Transition element for AI agents

> A full-frame handover: a giant key tag swings across the frame on its ring like a wiper, covers the cut and swings on, uncovering the next scene.

Canonical page: https://agentframes.ai/elements/keytag/tag-swing/
Markdown: https://agentframes.ai/elements/keytag/tag-swing.md

## Overview

- Name: Tag Swing (transition) (`tagSwing`), an element: one HyperFrames block per size
- Part of: the [Keytag](https://agentframes.ai/packs/keytag.md) pack (41 of 50). Available only through the All-access subscription.
- Category: Transition
- Purpose: A full-frame handover: a giant key tag swings across the frame on its ring like a wiper, covers the cut and swings on, uncovering the next scene.
- Pack: [Keytag](https://agentframes.ai/packs/keytag.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 Pastel plan (`pastel`), Monochrome plan with one accent (`mono`), Night plan (dark ground, glowing rooms) (`night`); avoid none
- Typical duration: 1.1s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/keytag/tag-swing.mp4
- Poster: https://agentframes.ai/media/keytag/tag-swing.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":0,"maxLength":20} |  |
| `colour` | enum | colour | {"type":"string","enum":["highlight","room"]} | highlight |

## What your agent can change

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

A full-frame handover: a giant key tag swings across the frame on its ring like a wiper, covers the cut and swings on, uncovering the next scene.

**Motion.** The tag swings in about its ring (ease-out), covers the frame from 0.5 to 0.62 s, then swings on down (ease-in).
**Why it moves.** change: the tag turning over is the next room or the next status.

### Mount

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

- `label`: {"type":"string","minLength":0,"maxLength":20}
- `colour`: {"type":"string","enum":["highlight","room"]}

- 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` defaults to the developer name.

Style: `colourway` (pastel, mono, night), `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
{
  "label": "",
  "colour": "highlight"
}
```

## FAQ

### What can my AI agent change in Tag Swing (transition)?

Your agent fills the `label` and `colour` 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 Keytag look.

### Which aspect ratios does Tag Swing (transition) support?

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

### How do I get Tag Swing (transition)?

Tag Swing (transition) is included in the Keytag 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 Keytag

- [Plan Flood Transition](https://agentframes.ai/elements/keytag/plan-flood.md): Room-colour rectangles in thick walls flood across the frame in a diagonal sweep to cover the cut, then drain away.
- [Tag Turn Transition](https://agentframes.ai/elements/keytag/tag-turn.md): A frame-size key tag turns in edge-on, covers the cut with an optional label, then turns away.
- [Drafting Grid Transition](https://agentframes.ai/elements/keytag/drafting-grid.md): The plan paper's grid squares fill in ink in a diagonal sweep to cover the cut, then clear in the same direction.
- [Status Tag](https://agentframes.ai/elements/keytag/status-tag.md): The listing status as a key tag: over the hero photo (a slow push), the status tag swings onto its brass ring with the price tag beside it; on a swap the status tag flips over on its axis to show the new status (Just listed → Sold).

## Community

Coming soon.
