# Before / After: Social post element for AI agents

> Before/after on a 45-degree wipe: the after image sweeps across the before behind a yellow divider with a ring handle, overshoots and settles on a split

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

## Overview

- Name: Before / After (`beforeAfter`), an element: one HyperFrames block per size
- Part of: the [Halo](https://agentframes.ai/packs/halo.md) pack (4 of 44). Available only through the All-access subscription.
- Category: Social post
- Purpose: Before/after on a 45-degree wipe: the after image sweeps across the before behind a yellow divider with a ring handle, overshoots and settles on a split
- Pack: [Halo](https://agentframes.ai/packs/halo.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 purple arcs (hero) (`p`), night (`k`), white (`w`); avoid signal yellow (transitions only) (`y`)
- Typical duration: 3.8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/halo/before-after.mp4
- Poster: https://agentframes.ai/media/halo/before-after.jpg
- Native 1:1 preview (watermarked): https://agentframes.ai/media/halo/before-after-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Halo pack. Add a `beforeAfter` beat to plan.json on a `p` canvas with slots `photoA`, `photoB`, `labelA`, `labelB`, `eyebrow` and `split` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `photoA` | string | Photo A | Plain text. |  |
| `photoB` | string | Photo B | Plain text. |  |
| `labelA` | string | Label A | Plain text. | before |
| `labelB` | string | Label B | Plain text. | after |
| `eyebrow` | string | Eyebrow | Plain text. | the rebrand |
| `split` | number | Split | Plain text. | 0.5 |

## What your agent can change

### Surface

Before/after on a 45-degree wipe: the after image sweeps across the before behind a yellow divider with a ring handle, overshoots and settles on a split. Category: `post`. Canvases: ok `p, k, w`; avoid `y` (the element vanishes on these). Typical 3.8s; settles at 2.3s.

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

- `photoA` (string). Plain text.
- `photoB` (string). Plain text.
- `labelA` (string). Plain text.
- `labelB` (string). Plain text.
- `eyebrow` (string). Plain text.
- `split` (number). Plain text.

Optional style/layout overrides: `dark`. Use them only to fix fit, never to change the brand.

### 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?

Your agent fills the `photoA`, `photoB`, `labelA`, `labelB`, `eyebrow` and `split` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Halo look.

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

Before / After 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?

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

- [Call-Us Card](https://agentframes.ai/elements/halo/call-us-card.md): Contact CTA: yellow diamond turns in, handset pops with pulsing signal arcs, number types on, CTA pill pops and presses with a ring ripple
- [End Card](https://agentframes.ai/elements/halo/end-card.md): Closing card: ring-mark lock-up snaps in, sign-off headline rises, CTA pill pops and presses, URL and phone tick in, rings and dots frame it
- [Save the Date](https://agentframes.ai/elements/halo/event-date.md): Save the date: day number rises inside a thick ring, month pops on a pill, event name rises beside it, time and place tick in
- [Logo Wall](https://agentframes.ai/elements/halo/logo-wall.md): Trusted by: client names pop into a honeycomb of rounded diamonds in a ripple, one tile in yellow

## Community

Coming soon.
