# Before / After Flip: Frame element for AI agents

> Thrift flip before/after: two outlined arch windows boing open (before in greyscale), labels pop on, play arrows dart between them and a badge slaps the cost of the flip on

Canonical page: https://agentframes.ai/elements/sunburst/before-after/
Markdown: https://agentframes.ai/elements/sunburst/before-after.md

## Overview

- Name: Before / After Flip (`beforeAfter`), an element: one HyperFrames block per size
- Part of: the [Sunburst](https://agentframes.ai/packs/sunburst.md) pack (6 of 43). Available only through the All-access subscription.
- Category: Frame
- Purpose: Thrift flip before/after: two outlined arch windows boing open (before in greyscale), labels pop on, play arrows dart between them and a badge slaps the cost of the flip on
- Pack: [Sunburst](https://agentframes.ai/packs/sunburst.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: 1:1 (native), 4:5 (stage-fit), 9:16 (stage-fit), 16:9 (stage-fit)
- Canvases: works on slate field (`s`), coral field (`r`), blue field (`b`), mustard field (`m`); avoid paper (`p`), swirl burst (coral on paper) (`x`), ray burst (blue on paper) (`z`)
- Typical duration: 3.8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/sunburst/before-after.mp4
- Poster: https://agentframes.ai/media/sunburst/before-after.jpg
- Native 1:1 preview (watermarked): https://agentframes.ai/media/sunburst/before-after-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Sunburst pack. Add a `beforeAfter` beat to plan.json on a `s` canvas with slots `title`, `photoA`, `posA`, `photoB`, `posB`, `labelA`, `labelB`, `cost`, `colorA`, `colorB`, `accent` and `badgeColor` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | Title | Plain text. | the flip |
| `photoA` | string | Photo A | Plain text. |  |
| `posA` | string | Pos A | Plain text. | 50% 45% |
| `photoB` | string | Photo B | Plain text. |  |
| `posB` | string | Pos B | Plain text. | 50% 30% |
| `labelA` | string | Label A | Plain text. | before |
| `labelB` | string | Label B | Plain text. | after |
| `cost` | string | Cost | Plain text. | £3\|+ 1 hr |
| `colorA` | string | Color A | Plain text. | slate |
| `colorB` | string | Color B | Plain text. | coral |
| `accent` | string | Accent | Plain text. | mustard |
| `badgeColor` | string | Badge Color | Plain text. | mustard |

## What your agent can change

### Surface

Thrift flip before/after: two outlined arch windows boing open (before in greyscale), labels pop on, play arrows dart between them and a badge slaps the cost of the flip on. Category: `frame`. Canvases: ok `s, r, b, m`; avoid `p, x, z` (the element vanishes on these). Typical 3.8s; settles at 1.8s.

### Editable (fill through plan.json `slots`)

- `title` (string). Plain text.
- `photoA` (string). Plain text.
- `posA` (string). Plain text.
- `photoB` (string). Plain text.
- `posB` (string). Plain text.
- `labelA` (string). Plain text.
- `labelB` (string). Plain text.
- `cost` (string) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `colorA` (string). Plain text.
- `colorB` (string). Plain text.
- `accent` (string). Plain text.
- `badgeColor` (string). Plain text.

### Protected

Do not change the motion, timing, easing, bounce, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±25%) so it fits.

### Safe editing

Set values in the beat's `slots` in plan.json, run `tools/validate.mjs`, rebuild, and check `qa/contact.jpg`. Never hand-edit the generated index.html or this element's code for a single video.

## FAQ

### What can my AI agent change in Before / After Flip?

Your agent fills the `title`, `photoA`, `posA`, `photoB`, `posB`, `labelA`, `labelB`, `cost`, `colorA`, `colorB`, `accent` and `badgeColor` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Sunburst look.

### Which aspect ratios does Before / After Flip support?

Before / After Flip is designed natively for 1:1 and stage-fits into 4:5, 9:16 and 16:9. A typical beat lasts 3.8s.

### How do I get Before / After Flip?

Before / After Flip is included in the Sunburst pack, which is part of the AgentFrames All-access subscription along with 42 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 Sunburst

- [Photo Frame](https://agentframes.ai/elements/sunburst/photo-frame.md): Outfit photo frame: a tall outlined stadium window boings open with the creator's shot, a tag label slides in, a quarter circle swings in and a caption pill pops onto its foot
- [Split Screen](https://agentframes.ai/elements/sunburst/split-screen.md): Two-up split: outlined bands slide across, two tall oval windows boing open side by side, labels pop onto their feet and a 'vs' badge slaps on between them
- [Retro TV Frame](https://agentframes.ai/elements/sunburst/video-frame.md): Retro TV: an outlined mustard TV set with antennae boings in, its rounded screen holds the creator's clip or photo, two dials spin in and an 'on air' pill blinks on top
- [Ad Disclosure Tag](https://agentframes.ai/elements/sunburst/ad-disclosure.md): Paid-partnership tag: a small 'ad' badge slaps on top left and a white label slides out naming the partner; it stays for the whole segment

## Community

Coming soon.
