# Flip the Switch: Section title element for AI agents

> Signature device. One idea switching from off to on: a big switch holds the "off" version on the charcoal ground; its knob slides across and the accent ground floods out of the knob to fill the frame, revealing the switch in its "on" state, then a caption lands. Starts on charcoal and ends on the accent ground, so the next scene should be an accent-ground scene.

Canonical page: https://agentframes.ai/elements/toggle/flip-switch/
Markdown: https://agentframes.ai/elements/toggle/flip-switch.md

## Overview

- Name: Flip the Switch (`flipSwitch`), an element: one HyperFrames block per size
- Part of: the [Toggle](https://agentframes.ai/packs/toggle.md) pack (11 of 50). Available only through the All-access subscription.
- Category: Section title
- Purpose: Signature device. One idea switching from off to on: a big switch holds the "off" version on the charcoal ground; its knob slides across and the accent ground floods out of the knob to fill the frame, revealing the switch in its "on" state, then a caption lands. Starts on charcoal and ends on the accent ground, so the next scene should be an accent-ground scene.
- 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: 7s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/toggle/flip-switch.mp4
- Poster: https://agentframes.ai/media/toggle/flip-switch.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Toggle pack. Add a `flipSwitch` beat to plan.json on a `lime` canvas with slots `label`, `off`, `on` and `caption` 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":1,"maxLength":28} | Same video |
| `off` | string | off | {"type":"string","minLength":1,"maxLength":20} | Boring intro |
| `on` | string | on | {"type":"string","minLength":1,"maxLength":20} | Scroll-stopper |
| `caption` | string | caption | {"type":"string","minLength":1,"maxLength":60} | Change one line. Keep the rest. |

## What your agent can change

**Flip the Switch (signature device)**. Native 1920×1080, 7s at 30fps.

Signature device. One idea switching from off to on: a big switch holds the "off" version on the charcoal ground; its knob slides across and the accent ground floods out of the knob to fill the frame, revealing the switch in its "on" state, then a caption lands. Starts on charcoal and ends on the accent ground, so the next scene should be an accent-ground scene.

**Motion.** Label tracking collapses; the switch pops in (small overshoot); after a reading hold the knob slides (ease in-out) and the track fills; a circle of the accent ground grows out of the knob (ease in-out) until it covers the frame; rays burst round the knob once; caption rises.
**Why it moves.** change + character: the viewer watches the idea flip state, and the whole world changing colour makes the switch feel like a decision.

### Mount

Copy every manifest file into your project (plus `af-toggle-runtime`). Mount with a unique host id, `data-composition-id="af-toggle-flip-switch-16x9"`,
`data-composition-src="compositions/af-toggle-flip-switch-16x9.html"`, `data-duration="7"` 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":1,"maxLength":28}
- `off` (required): {"type":"string","minLength":1,"maxLength":20}
- `on` (required): {"type":"string","minLength":1,"maxLength":20}
- `caption`: {"type":"string","minLength":1,"maxLength":60}

- `off` and `on` share one switch width (the longer label sets it).
- The scene ends on the accent ground: follow it with an accent-ground scene (no transition needed) or a ground swap.

Style: `colourway` (lime, cobalt, coral), `accent` (optional hex), `footer`, ground: dark only, `exit` (slide or cut).

### Timing

7s. Everything has landed by 4.2s (60%), then the scene holds for reading (the grid and the faint rings slow to a residual drift,
text stays still) and slides out to the left in a motion blur over the last 0.5 s, leaving the empty ground.

### Example

```json
{
  "label": "Same video",
  "off": "Boring intro",
  "on": "Scroll-stopper",
  "caption": "Change one line. Keep the rest."
}
```

## FAQ

### What can my AI agent change in Flip the Switch?

Your agent fills the `label`, `off`, `on` and `caption` 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 Toggle look.

### Which aspect ratios does Flip the Switch support?

Flip the Switch is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7s.

### How do I get Flip the Switch?

Flip the Switch 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

- [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.
- [Definition: The Word Unrolls](https://agentframes.ai/elements/toggle/definition.md): Defines a term. The term spins in as text on a circle inside a drawn ring, unrolls into a straight line, the dot drops onto its end like a full stop, a rule draws and the meaning rises line by line.
- [Takeaway: Marked Word + CTA Switch](https://agentframes.ai/elements/toggle/takeaway.md): Ends the explainer: the takeaway types on in caps, a white box sweeps in behind the key word, then the call to action arrives as a switch whose knob slides on, with the handle below.
- [Chapter: Number Wheel](https://agentframes.ai/elements/toggle/chapter.md): Opens a section: the chapter number rolls into place on a wheel, a tracked label collapses and the section title types on, with an optional one-line kicker.

## Community

Coming soon.
