# Card Zoom: Transition element for AI agents

> 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.

Canonical page: https://agentframes.ai/elements/shuffle/card-zoom/
Markdown: https://agentframes.ai/elements/shuffle/card-zoom.md

## Overview

- Name: Card Zoom (`cardZoom`), an element: one HyperFrames block per size
- Part of: the [Shuffle](https://agentframes.ai/packs/shuffle.md) pack (32 of 50). Available only through the All-access subscription.
- Category: Transition
- Purpose: 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.
- 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/card-zoom.mp4
- Poster: https://agentframes.ai/media/shuffle/card-zoom.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `img` | string | img | {"type":"string","minLength":1,"maxLength":300} | 3 |
| `colour` | enum | colour | {"type":"string","enum":["accent","ink","paper"]} | accent |
| `x` | number | x | {"type":"number","minimum":0,"maximum":100} | 50 |
| `y` | number | y | {"type":"number","minimum":0,"maximum":100} | 50 |

## What your agent can change

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

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.

**Motion.** The card grows from a chip at (x, y) to cover the frame by 0.5 s (ease in-out; corners square off, the picture eases out of a zoom); it covers the cut from 0.5 s to 0.62 s, then swings up over its top edge towards the viewer (ease-in) and fades.
**Why it moves.** continuity: the pack's picture card becomes the doorway, so a change of ground or chapter reads as opening the next card.

### Mount

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

- `img`: {"type":"string","minLength":1,"maxLength":300}
- `colour`: {"type":"string","enum":["accent","ink","paper"]}
- `x`: {"type":"number","minimum":0,"maximum":100}
- `y`: {"type":"number","minimum":0,"maximum":100}

- Full cover runs from 0.5 s to 0.62 s; start the zoom 0.55 s before the cut and set the outgoing scene's `exit` to `cut`.
- `img` empty uses the solid `colour`.
- 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
{
  "img": "3",
  "colour": "accent",
  "x": 50,
  "y": 50
}
```

## FAQ

### What can my AI agent change in Card Zoom?

Your agent fills the `img`, `colour`, `x` and `y` 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 Card Zoom support?

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

### How do I get Card Zoom?

Card Zoom 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

- [Stack Wipe](https://agentframes.ai/elements/shuffle/stack-wipe.md): 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.
- [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.
