# Before & After: Diagram element for AI agents

> Before/after transformation with a torn-edge wipe

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

## Overview

- Name: Before & After (`beforeAfter`), an element: one HyperFrames block per size
- Part of: the [Orange Collage](https://agentframes.ai/packs/orange-collage.md) pack (2 of 31). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Before/after transformation with a torn-edge wipe
- Pack: [Orange Collage](https://agentframes.ai/packs/orange-collage.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 (stage-fit), 4:5 (stage-fit)
- Canvases: works on chalk-black (`k`), grunge-white (`w`), signal-orange (`o`); avoid none
- Typical duration: 1.6s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/orange-collage/before-after.mp4
- Poster: https://agentframes.ai/media/orange-collage/before-after.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Orange Collage pack. Add a `beforeAfter` beat to plan.json on a `k` canvas with slots `before` and `after` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `before` | string | Before | HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>. | 3 hours<br/>chasing invoices |
| `after` | string | After | HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>. | 10 minutes<br/>reviewing a summary |

## What your agent can change

### Surface

Before/after transformation with a torn-edge wipe. Category: `overview`. Canvases: ok `k, w, o`. Typical 1.6s; settles at 1.3s.

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

- `before` (string) **EXAMPLE DATA: replace or get client sign-off**. HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>.
- `after` (string) **EXAMPLE DATA: replace or get client sign-off**. HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>.

### Protected

Do not change the motion, timing, easing, stop-motion cadence, 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?

Your agent fills the `before` and `after` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Orange Collage look.

### Which aspect ratios does Before & After support?

Before & After is designed natively for 16:9 and stage-fits into 9:16 and 4:5. A typical beat lasts 1.6s.

### How do I get Before & After?

Before & After is included in the Orange Collage pack, which is part of the AgentFrames All-access subscription along with 47 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 Orange Collage

- [Cork Board](https://agentframes.ai/elements/orange-collage/cork-board.md): Connected ideas: pinned cards linked by string
- [Cycle](https://agentframes.ai/elements/orange-collage/cycle.md): Repeating process loop of 4 steps around a hub
- [Pros & Cons](https://agentframes.ai/elements/orange-collage/pros-cons.md): Trade-offs: upside vs catch lists with ticks and crosses
- [Pyramid](https://agentframes.ai/elements/orange-collage/pyramid.md): Hierarchy or foundation-first idea: 3-5 stacked tiers

## Community

Coming soon.
