# Raise a Glass: Diagram element for AI agents

> Two champagne glasses swing in and clink with a glint, the line in bulb letters and a script toast.

Canonical page: https://agentframes.ai/elements/festoon/raise-a-glass/
Markdown: https://agentframes.ai/elements/festoon/raise-a-glass.md

## Overview

- Name: Raise a Glass (`raiseAGlass`), an element: one HyperFrames block per size
- Part of: the [Festoon](https://agentframes.ai/packs/festoon.md) pack (48 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Two champagne glasses swing in and clink with a glint, the line in bulb letters and a script toast.
- Pack: [Festoon](https://agentframes.ai/packs/festoon.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 Barn (oxblood and bulb gold) (`barn`), Garden party (sage and blush bulbs) (`garden`), Midnight (navy and white bulbs) (`midnight`); avoid none
- Typical duration: 4.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/festoon/raise-a-glass.mp4
- Poster: https://agentframes.ai/media/festoon/raise-a-glass.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Festoon pack. Add a `raiseAGlass` beat to plan.json on a `barn` canvas with slots `line`, `script`, `photo` and `focus` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `line` | string | line | {"type":"string","minLength":1,"maxLength":12} | Cheers |
| `script` | string | script | {"type":"string","minLength":0,"maxLength":30} | to the happy couple |
| `photo` | string | photo | {"type":"string","minLength":0,"maxLength":200} | assets/af-festoon/media/demo/tables.jpg |
| `focus` | string | focus | {"type":"string","minLength":0,"maxLength":20} | 50% 50% |

## What your agent can change

**Raise a Glass**. Native 1920×1080, 4.5s at 30fps.

Two champagne glasses swing in and clink with a glint, the line in bulb letters and a script toast.

**Motion.** The glasses swing in and meet (ease-out); a glint catches; the line chases on; the script inks in.
**Why it moves.** character: the toast.

### Mount

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

- `line`: {"type":"string","minLength":1,"maxLength":12}
- `script`: {"type":"string","minLength":0,"maxLength":30}
- `photo` (required): {"type":"string","minLength":0,"maxLength":200}
- `focus`: {"type":"string","minLength":0,"maxLength":20}

- Bulb letters are sampled from the glyphs at a fixed pitch per size; a word too wide for the sign is refused.
- Text is typeset exactly as written and never shrunk: a slot that does not fit stops the block with a message.

Style: `colourway` (barn, garden, midnight), `brandColour` and `accent` (optional hex), `agency`, `footer`, `exit` (lift or cut).

### Timing

4.5s. Everything has landed by 2.7s (60%), then the scene holds still for reading and the graphics lift away over the last 0.4 s, leaving the photo or your footage.

### Example

```json
{
  "line": "Cheers",
  "script": "to the happy couple",
  "photo": "assets/af-festoon/media/demo/tables.jpg",
  "focus": "50% 50%"
}
```

## FAQ

### What can my AI agent change in Raise a Glass?

Your agent fills the `line`, `script`, `photo` and `focus` 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 Festoon look.

### Which aspect ratios does Raise a Glass support?

Raise a Glass is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.

### How do I get Raise a Glass?

Raise a Glass is included in the Festoon 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 Festoon

- [Venue Plan (site plan)](https://agentframes.ai/elements/festoon/venue-plan.md): The site plan on a dark panel over the dimmed space: each space as a box (positions as fractions of the panel) with its name and capacity; the current space lights up in the bulb colour and glows; a mono note.
- [Stay Over](https://agentframes.ai/elements/festoon/stay-over.md): The on-site rooms as glowing tiles (rooms, guests sleeping, cottages) over the snug, with a script line.
- [Getting Here (area)](https://agentframes.ai/elements/festoon/getting-here.md): Place: the heading over the exterior, then the travel rows light one by one, each led by a bulb that catches: the place in Big Shoulders and the time in mono in the bulb colour.
- [The Day, Hour by Hour](https://agentframes.ai/elements/festoon/the-day-hours.md): The day's timeline: bulbs on a cable mark the moments, each lighting with its time and what happens.

## Community

Coming soon.
