# Ground Swap: Transition element for AI agents

> Signature transition. Circles of the next scene's ground bloom in from the edges and the centre and merge until they cover the frame, then drop away under the next scene. Transparent; mount it on a track above the cut, starting 0.66 s before it.

Canonical page: https://agentframes.ai/elements/toggle/ground-swap/
Markdown: https://agentframes.ai/elements/toggle/ground-swap.md

## Overview

- Name: Ground Swap (`groundSwap`), an element: one HyperFrames block per size
- Part of: the [Toggle](https://agentframes.ai/packs/toggle.md) pack (12 of 50). Available only through the All-access subscription.
- Category: Transition
- Purpose: Signature transition. Circles of the next scene's ground bloom in from the edges and the centre and merge until they cover the frame, then drop away under the next scene. Transparent; mount it on a track above the cut, starting 0.66 s before it.
- Pack: [Toggle](https://agentframes.ai/packs/toggle.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 Lime (acid lime + charcoal) (`lime`), Cobalt (electric blue + midnight) (`cobalt`), Coral (warm coral + espresso) (`coral`); avoid none
- Typical duration: 0.75s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/toggle/ground-swap.mp4
- Poster: https://agentframes.ai/media/toggle/ground-swap.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Toggle pack. Add a `groundSwap` beat to plan.json on a `lime` canvas with slot `to` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `to` | enum | to | {"type":"string","enum":["accent","dark"]} | accent |

## What your agent can change

**Ground Swap (signature transition, overlay)**. Native 1920×1080, 0.75s at 30fps. Transparent overlay: mount it on a track above a host scene.

Signature transition. Circles of the next scene's ground bloom in from the edges and the centre and merge until they cover the frame, then drop away under the next scene. Transparent; mount it on a track above the cut, starting 0.66 s before it.

**Motion.** Five circles grow (ease in-out, 0.06 s apart) from points off the edges and the middle until the frame is covered at 0.6 s; the cover holds for 0.1 s across the cut and is removed at 0.7 s, under an identical empty ground.
**Why it moves.** continuity: the ground itself changes colour, so chapters change without a hard cut, and the bloom is the style's own move.

### Mount

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

- `to`: {"type":"string","enum":["accent","dark"]}

- `to` is the ground of the next scene. Full cover runs from 0.6 s to 0.7 s; start the swap 0.66 s before the cut. Set the outgoing scene's `exit` to `cut` so the circles swallow its content.

Style: `colourway`, `accent`.

### Timing

0.75s. Everything has landed by 0.4s (60%), then the scene holds for reading (the grid and the faint rings slow to a residual drift,
text stays still).

### Example

```json
{
  "to": "accent"
}
```

## FAQ

### What can my AI agent change in Ground Swap?

Your agent fills the `to` slot 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 Toggle look.

### Which aspect ratios does Ground Swap support?

Ground Swap is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 0.75s.

### How do I get Ground Swap?

Ground Swap is included in the Toggle 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 Toggle

- [Block Step](https://agentframes.ai/elements/toggle/block-step.md): A full-frame cut between any two scenes. Columns drop in from the top on a diagonal until the frame is covered, then carry on down out of frame, uncovering the next scene. Mount on track 1 starting 0.52 s before the cut.
- [Drip Wipe](https://agentframes.ai/elements/toggle/drip-wipe.md): A playful full-frame cut. Rounded streaks drip down from the top at different speeds and merge into a full cover, then the whole cover slides down and away to reveal the next scene. Mount on track 1 starting 0.6 s before the cut.
- [Iris Ring](https://agentframes.ai/elements/toggle/iris-ring.md): A full-frame cut that focuses on the centre. The frame closes in to a ringed point, holds for an instant, then opens again out of the centre onto the next scene. Mount on track 1 starting 0.5 s before the cut.
- [Opening Hook: Caps Type-On + Orbiting Dot](https://agentframes.ai/elements/toggle/opening-hook.md): Opens the explainer: a tracked label collapses into place, the headline types on letter by letter out of a motion blur, a thin ring draws round its first word and the dot laps it once and parks, then a kicker sets up the promise.

## Community

Coming soon.
