# Day to Night: Section title element for AI agents

> The barn by day crossfades to the same barn at dusk as the festoon lights up, with a title and a script line.

Canonical page: https://agentframes.ai/elements/festoon/day-to-night/
Markdown: https://agentframes.ai/elements/festoon/day-to-night.md

## Overview

- Name: Day to Night (`dayToNight`), an element: one HyperFrames block per size
- Part of: the [Festoon](https://agentframes.ai/packs/festoon.md) pack (17 of 50). Available only through the All-access subscription.
- Category: Section title
- Purpose: The barn by day crossfades to the same barn at dusk as the festoon lights up, with a title and a script line.
- 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/day-to-night.mp4
- Poster: https://agentframes.ai/media/festoon/day-to-night.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `day` | string | day | {"type":"string","minLength":0,"maxLength":200} | assets/af-festoon/media/demo/longbarn-day.jpg |
| `night` | string | night | {"type":"string","minLength":0,"maxLength":200} | assets/af-festoon/media/demo/longbarn-dusk.jpg |
| `focus` | string | focus | {"type":"string","minLength":0,"maxLength":20} | 50% 50% |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":22} | Day *to night* |
| `script` | string | script | {"type":"string","minLength":0,"maxLength":30} | same room, a different party |

## What your agent can change

**Day to Night**. Native 1920×1080, 4.5s at 30fps.

The barn by day crossfades to the same barn at dusk as the festoon lights up, with a title and a script line.

**Motion.** The photos crossfade over 1.2 s; the festoon lights; the title rises; the script inks in.
**Why it moves.** change: the room as the evening arrives.

### Mount

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

- `day` (required): {"type":"string","minLength":0,"maxLength":200}
- `night` (required): {"type":"string","minLength":0,"maxLength":200}
- `focus`: {"type":"string","minLength":0,"maxLength":20}
- `title` (required): {"type":"string","minLength":1,"maxLength":22}
- `script`: {"type":"string","minLength":0,"maxLength":30}

- `title` is set in Big Shoulders caps; `*word*` takes the bulb colour.
- 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
{
  "day": "assets/af-festoon/media/demo/longbarn-day.jpg",
  "night": "assets/af-festoon/media/demo/longbarn-dusk.jpg",
  "focus": "50% 50%",
  "title": "Day *to night*",
  "script": "same room, a different party"
}
```

## FAQ

### What can my AI agent change in Day to Night?

Your agent fills the `day`, `night`, `focus`, `title` and `script` 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 Day to Night support?

Day to Night is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.

### How do I get Day to Night?

Day to Night 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

- [Space Walk (tour)](https://agentframes.ai/elements/festoon/space-walk.md): The walkthrough beat: the space full frame with a slow push that comes to rest; the festoon lights; SPACE n OF m · the name in mono, the line in Big Shoulders caps and a script note.
- [Space Walk: The Orchard](https://agentframes.ai/elements/festoon/space-walk-orchard.md): The space walk for the outdoor ceremony spot.
- [Prints on a Line](https://agentframes.ai/elements/festoon/prints-on-a-line.md): Four photos pinned under the festoon string like prints on a line, each swinging on and settling, with an optional title.
- [The Spaces](https://agentframes.ai/elements/festoon/the-spaces.md): Up to three spaces in turn under one festoon, each crossfading in with its name in bulb letters and its capacity.

## Community

Coming soon.
