12 of 50 in the Toggle pack

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..

  • 1:1native
  • 16:9native
  • 9:16native
  • 4:5native

Watermarked preview. The Toggle pack includes all 50 elements, clean and editable, in every size.

Paste this into Claude Code

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

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
toenumto: {"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.

This is 1 of 50

Get the full Toggle pack

Ground Swap comes as part of Toggle: 50 elements, 4 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Wide (16:9) · 60s · made entirely with this pack

More in Toggle

See all 50 elements in Toggle →