# Chance Card: The Twist: Label & callout element for AI agents

> A twist mid-explainer. An orange "Chance" card is drawn off its deck and flipped over: the twist is printed on it, with its effect in big green (good) or red (bad) type.

Canonical page: https://agentframes.ai/elements/tabletop/chance-card/
Markdown: https://agentframes.ai/elements/tabletop/chance-card.md

## Overview

- Name: Chance Card: The Twist (`chanceCard`), an element: one HyperFrames block per size
- Part of: the [Tabletop](https://agentframes.ai/packs/tabletop.md) pack (40 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: A twist mid-explainer. An orange "Chance" card is drawn off its deck and flipped over: the twist is printed on it, with its effect in big green (good) or red (bad) type.
- Pack: [Tabletop](https://agentframes.ai/packs/tabletop.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 Cream table (cream linen, white board) (`cream`), Kitchen table (pale oak, pastel pieces) (`kitchen`), Sky table (pale blue, white board, bright pieces) (`sky`); avoid none
- Typical duration: 6s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/tabletop/chance-card.mp4
- Poster: https://agentframes.ai/media/tabletop/chance-card.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Tabletop pack. Add a `chanceCard` beat to plan.json on a `cream` canvas with slots `label`, `text`, `effect` and `good` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":1,"maxLength":14} | Chance |
| `text` | string | text | {"type":"string","minLength":1,"maxLength":90} | Your boiler breaks. Pay the repair from your safety net, not a credit card. |
| `effect` | string | effect | {"type":"string","minLength":1,"maxLength":16} | -£400 |
| `good` | string | good | {"type":"boolean"} | false |

## What your agent can change

**Chance Card: The Twist**. Native 1920×1080, 6s at 30fps.

A twist mid-explainer. An orange "Chance" card is drawn off its deck and flipped over: the twist is printed on it, with its effect in big green (good) or red (bad) type.

**Motion.** The deck is set down; the top card is drawn up and across (ease-out) and flips about its vertical axis with a lift (ease in-out); the shadow follows.
**Why it moves.** character: a Chance card signals "something unexpected happens" in a way everyone recognises.

### Mount

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

- `label`: {"type":"string","minLength":1,"maxLength":14}
- `text` (required): {"type":"string","minLength":1,"maxLength":90}
- `effect`: {"type":"string","minLength":1,"maxLength":16}
- `good`: {"type":"boolean"}

- `good` false prints the effect in red; true (default) in green.

Style: `colourway` (cream, kitchen, sky), `accent` (optional hex), `footer`, `round` (e.g. 3/5), `exit` (lift or cut).

### Timing

6s. Everything has landed by 3.6s (60%), then the scene holds for reading (the lamp light drifts slowly over the table;
text stays still) and every piece is lifted off the table over the last 0.5 s, leaving the empty table.

### Example

```json
{
  "label": "Chance",
  "text": "Your boiler breaks. Pay the repair from your safety net, not a credit card.",
  "effect": "-£400",
  "good": false
}
```

## FAQ

### What can my AI agent change in Chance Card: The Twist?

Your agent fills the `label`, `text`, `effect` and `good` 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 Tabletop look.

### Which aspect ratios does Chance Card: The Twist support?

Chance Card: The Twist is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 6s.

### How do I get Chance Card: The Twist?

Chance Card: The Twist is included in the Tabletop 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 Tabletop

- [Pointer Callout](https://agentframes.ai/elements/tabletop/pointer-callout.md): Points at one spot on any Tabletop scene (or other footage): a thick accent ring with an ink edge closes in round the target, a board line runs from it, and a little card is set down at its end with a label and optional detail. Transparent background; mount it on a track above the host scene.
- [Quote Card + Source Chip](https://agentframes.ai/elements/tabletop/quote-card.md): A quote with its source. A white rule card is dealt with the quote rising line by line; the source is a yellow chip set down on the card's bottom edge.
- [Highlight Square](https://agentframes.ai/elements/tabletop/highlight-square.md): Frames any area of a scene or footage: a thick accent frame is pressed down round it, with an optional label tab. Transparent background; mount it on a track above the host scene.
- [Source Card](https://agentframes.ai/elements/tabletop/source-card.md): Cites a source: a small white card with "Source" and the reference is set down in a corner of any scene. Transparent background; mount it on a track above the host scene.

## Community

Coming soon.
