# Stack Wipe: Transition element for AI agents

> Transition. A fanned stack of tall cards (pictures or solid colours) slides in from one side and covers the frame, then carries on out the other side to reveal the next scene. Transparent; mount it above the cut.

Canonical page: https://agentframes.ai/elements/shuffle/stack-wipe/
Markdown: https://agentframes.ai/elements/shuffle/stack-wipe.md

## Overview

- Name: Stack Wipe (`stackWipe`), an element: one HyperFrames block per size
- Part of: the [Shuffle](https://agentframes.ai/packs/shuffle.md) pack (47 of 50). Available only through the All-access subscription.
- Category: Transition
- Purpose: Transition. A fanned stack of tall cards (pictures or solid colours) slides in from one side and covers the frame, then carries on out the other side to reveal the next scene. Transparent; mount it above the cut.
- Pack: [Shuffle](https://agentframes.ai/packs/shuffle.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 Cobalt (white paper + electric blue) (`cobalt`), Tomato (white paper + signal red) (`tomato`), Forest (white paper + deep green) (`forest`); avoid none
- Typical duration: 1s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/shuffle/stack-wipe.mp4
- Poster: https://agentframes.ai/media/shuffle/stack-wipe.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Shuffle pack. Add a `stackWipe` beat to plan.json on a `cobalt` canvas with slots `direction`, `images` and `colour` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `direction` | enum | direction | {"type":"string","enum":["left","right"]} | left |
| `images` | string | images | JSON string. {"type":"array","minItems":0,"maxItems":3,"items":{"type":"string","minLength":1,"maxLength":300}} | ["2","15","5"] |
| `colour` | enum | colour | {"type":"string","enum":["accent","ink","paper"]} | accent |

## What your agent can change

**Stack Wipe (transition, overlay)**. Native 1920×1080, 1s at 30fps. Transparent overlay: mount it on a track above a host scene.

Transition. A fanned stack of tall cards (pictures or solid colours) slides in from one side and covers the frame, then carries on out the other side to reveal the next scene. Transparent; mount it above the cut.

**Motion.** The cards travel in one after another (ease in-out) with a slight fan; the last, full-width card makes the cover complete from 0.5 s to 0.62 s; then they slide out (ease-in) in the same direction.
**Why it moves.** continuity: the cards sweeping through are the pack's own material, so a topic change feels like turning to the next set.

### Mount

Copy every manifest file into your project (plus `af-shuffle-runtime`). Mount with a unique host id, `data-composition-id="af-shuffle-stack-wipe-16x9"`,
`data-composition-src="compositions/af-shuffle-stack-wipe-16x9.html"`, `data-duration="1"` 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).

- `direction`: {"type":"string","enum":["left","right"]}
- `images`: {"type":"array","minItems":0,"maxItems":3,"items":{"type":"string","minLength":1,"maxLength":300}}
- `colour`: {"type":"string","enum":["accent","ink","paper"]}

- `direction` is the way the stack travels. `images` fill the first three cards; `colour` is the full-width covering card.
- Mount it on track 1 (`style="z-index:10"`) starting 0.55 s before the cut, and set the outgoing scene's `exit` to `cut`. It covers the frame from 0.5 s to 0.62 s.
- Picture slots take "1"-"16" (the bundled picture library, see `docs/PICTURES.md`) or a project-relative path to your own .jpg/.png/.webp (e.g. "assets/my/photo.jpg"). Pictures are cropped to fill their card (object-fit: cover).

Style: `colourway`, `accent`.

### Timing

1s. Everything has landed by 0.6s (60%), then the scene holds for reading (the dot grid and the pictures
inside their cards drift at a slow residual rate; text stays still).

### Example

```json
{
  "direction": "left",
  "images": "[\"2\",\"15\",\"5\"]",
  "colour": "accent"
}
```

## FAQ

### What can my AI agent change in Stack Wipe?

Your agent fills the `direction`, `images` and `colour` 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 Shuffle look.

### Which aspect ratios does Stack Wipe support?

Stack Wipe is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 1s.

### How do I get Stack Wipe?

Stack Wipe is included in the Shuffle 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 Shuffle

- [Card Zoom](https://agentframes.ai/elements/shuffle/card-zoom.md): Signature transition. A picture card grows from a chip into the full frame, holds across the cut, then flips up and away to reveal the next scene. Transparent; mount it on a track above the cut, starting 0.55 s before it.
- [Folder Dive](https://agentframes.ai/elements/shuffle/folder-dive.md): Transition into detail. A folder grows from a point until its front fills the frame, then the front tips open and the view dives through it into the next scene. Transparent; mount it above the cut.
- [Flip Wall](https://agentframes.ai/elements/shuffle/flip-wall.md): Transition. A grid of tiles flips over one after another in a diagonal wave until the frame is covered in one colour, then flips back the same way to reveal the next scene. Transparent; mount it above the cut.
- [Cursor Swipe](https://agentframes.ai/elements/shuffle/cursor-swipe.md): Transition. The cursor grabs the edge of a sheet and drags it across the frame like a slide, covering it, then drags it on and off the other side to reveal the next scene. Transparent; mount it above the cut.

## Community

Coming soon.
