# Before / after prints: Frame element for AI agents

> Two instant prints side by side: "before" drops in, then "after" drops on the word, each with its label pill.

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

## Overview

- Name: Before / after prints (`beforeAfter`), an element: one HyperFrames block per size
- Part of: the [Haul](https://agentframes.ai/packs/haul.md) pack (28 of 56). Available only through the All-access subscription.
- Category: Frame
- Purpose: Two instant prints side by side: "before" drops in, then "after" drops on the word, each with its label pill.
- Pack: [Haul](https://agentframes.ai/packs/haul.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 none; avoid none
- Typical duration: 5s
- Speaker-safe: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/haul/before-after.mp4
- Poster: https://agentframes.ai/media/haul/before-after.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Haul pack. Add a `beforeAfter` beat to plan.json on a `k` canvas with slots `before`, `after`, `beforePos`, `afterPos`, `beforeLabel`, `afterLabel`, `side` and `at` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `before` | string | before | {"type":"string","maxLength":200,"minLength":1} | assets/af-haul/photos/broll-shelf.jpg |
| `after` | string | after | {"type":"string","maxLength":200,"minLength":1} | assets/af-haul/photos/broll-bite.jpg |
| `beforePos` | string | beforePos | {"type":"string","maxLength":12} |  |
| `afterPos` | string | afterPos | {"type":"string","maxLength":12} |  |
| `beforeLabel` | string | beforeLabel | {"type":"string","maxLength":12} | the shelf |
| `afterLabel` | string | afterLabel | {"type":"string","maxLength":12} | the winner |
| `side` | enum | side | {"type":"string","enum":["left","right"],"description":"16:9 only: which third of the frame the piece sits in"} | right |
| `at` | string | at | JSON string. {"type":"object","description":"optional land times in block seconds, to match the transcript: {after}","properties":{"after":{"type":"number","minimum":0}}} |  |

## What your agent can change

**Before / after prints**. Native 1920×1080, 5s at 30fps. Sits over the creator's footage (transparent outside its own parts).

Two instant prints side by side: "before" drops in, then "after" drops on the word, each with its label pill.

**Motion.** Each print slams from 1.35× and settles to its tilt; labels slam 0.3 s after their print; the "after" print lands at `at.after`. Outro: glitch out.
**Why it moves.** change: then vs now, in the order you say it.

### Mount

Copy every manifest file into your project (plus `af-haul-runtime`). Mount with a unique host id, `data-composition-id="af-haul-before-after-16x9"`,
`data-composition-src="compositions/af-haul-before-after-16x9.html"`, `data-duration="5"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.
Over live footage set `backdrop` to `""` (the default still is only there so the block reads on its own).

### 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 (text is fitted to at most 75% of its design size, never cut).

- `before` (required): {"type":"string","maxLength":200,"minLength":1}
- `after` (required): {"type":"string","maxLength":200,"minLength":1}
- `beforePos`: {"type":"string","maxLength":12}
- `afterPos`: {"type":"string","maxLength":12}
- `beforeLabel`: {"type":"string","maxLength":12}
- `afterLabel`: {"type":"string","maxLength":12}
- `side`: {"type":"string","enum":["left","right"],"description":"16:9 only: which third of the frame the piece sits in"}
- `at`: {"type":"object","description":"optional land times in block seconds, to match the transcript: {after}","properties":{"after":{"type":"number","minimum":0}}}


### Brand and layout

Brand variables (defaults from the pack's `brand.json`): `creator`, `handle`, `channel`, `tagline`, `series`, `url`, `colourway`, `accent`, `monogram`, `logo`, `avatar`, `ctaFollow`, `ctaLink`, `ctaCode`. `colourway` is volt, berry or lagoon;
`accent` (hex) recolours the sticker colour (and the first flood) and falls back if ink text would not read on it (4.5:1).
Layout: `backdrop`, `speakerFocus` (crop of the speaker), `capTop` (px; 0 = upper chest with clear air under the chin for a centred 16:9 master),
`zoneTop` (px; 0 = the sticker zone below the captions; on a wide shot put the stickers above the head).

### Example

```json
{
  "before": "assets/af-haul/photos/broll-shelf.jpg",
  "after": "assets/af-haul/photos/broll-bite.jpg",
  "beforeLabel": "the shelf",
  "afterLabel": "the winner",
  "side": "right"
}
```

## FAQ

### What can my AI agent change in Before / after prints?

Your agent fills the `before`, `after`, `beforePos`, `afterPos`, `beforeLabel`, `afterLabel`, `side` and `at` 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 Haul look.

### Which aspect ratios does Before / after prints support?

Before / after prints is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 5s.

### How do I get Before / after prints?

Before / after prints is included in the Haul pack, which is part of the AgentFrames All-access subscription along with 55 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 Haul

- [B-roll prints (polaroid drop)](https://agentframes.ai/elements/haul/broll-prints.md): The sample's B-roll grammar: up to three instant prints of your B-roll drop onto a blurred copy of the shot and stack, the next knocking the one under it aside, with a white label pill under the stack ("the shop shelf").
- [Haul grid (prints)](https://agentframes.ai/elements/haul/haul-grid.md): Everything you bought, as a grid of instant prints dropping onto a blurred copy of the shot (2 columns, 3 on 16:9), with a volt label pill.
- [Unbox reveal](https://agentframes.ai/elements/haul/unbox-reveal.md): The unboxing beat: an ink box with a volt lid slams in, the lid flips open on the word and the product jumps up out of it.
- [Cover lockup (kicker + volt pill)](https://agentframes.ai/elements/haul/cover-slam.md): The hook and platform cover: a line of heavy white caps ("I tried every"), the big tilted volt pill ("viral protein bar") and a white pill under it ("so you don't have to"), with the channel tag in an ink pill at the top. With cover = true it is fully built on frame 0 and glitches out as the speaker starts.

## Community

Coming soon.
