
Feature card
A verb-led feature headline beside a floating white product card (rebuilt from ui.json) that tilts in from depth; text-free ghost cards drift behind.
- 1:1native
- 16:9native
- 9:16native
- 4:5native
1 of 50 in the Glide pack
A question lands word by word as the camera tracks along it; the highlighted role word rolls through 2-4 audiences, a squiggle draws, and the line finishes..
Watermarked preview. The Glide pack includes all 50 elements, clean and editable, in every size.
Use the AgentFrames Glide pack. Add a `roleSwap` beat to plan.json on a `apricot-day` canvas with slots `lead`, `roles` and `tail` from my script. Then run validate → build → qa and show me qa/contact.jpg.The slots your agent fills from your script, through plan.json.
| Slot | Type | What it holds | Example |
|---|---|---|---|
lead | string | lead: {"type":"string","minLength":1,"maxLength":22}. | Are you a |
roles | string | roles: {"type":"array","minItems":2,"maxItems":4,"items":{"type":"string","minLength":1,"maxLength":14}}. | ["Photographer","Designer","Coach","Freelancer"] |
tail | string | tail: {"type":"string","minLength":1,"maxLength":44}. | still booking clients over DM? |
Role-swap hook · pilot role: Opening hook. A question lands word by word as the camera tracks along it; the highlighted role word rolls through 2-4 audiences, a squiggle draws, and the line finishes.
Why it moves: attention: the camera tracks the sentence word by word; the key box rolls through audiences so every viewer sees themselves
Native 1920×1080, 5s at 30 fps. Graphics only (no footage). Use the matching aspect variant; never stretch another size.
Copy every manifest file path→target, plus af-glide-runtime. Mount with a unique host id, data-composition-id="af-glide-role-swap-16x9", data-composition-src="compositions/af-glide-role-swap-16x9.html" and data-variable-values (JSON object). The starter projects already contain everything.
lead: {"type":"string","minLength":1,"maxLength":22}roles: JSON string; {"type":"array","minItems":2,"maxItems":4,"items":{"type":"string","minLength":1,"maxLength":14}}tail: {"type":"string","minLength":1,"maxLength":44}Nested slots are JSON strings inside data-variable-values. A panel is a ui.json block: {"type":"list","title":"...","rows":[{"title","meta","badge","icon"}]}, or {"type":"shot","src":"data:image/png;base64,..."} for a screenshot (where the slot allows it).
brandName (1-24), logo (empty → monogram app icon, or an inline base64 image), look (day | dusk), colourway (apricot | lagoon | iris), accent (empty or #RRGGBB, overrides the colourway accent), timeOffset (seconds of film time at this scene; keeps the drifting background continuous across cuts).
Headline syntax: \n breaks a line. *word* is the key word (accent colour).
Out-of-range input stops the block with a message on data-glide-error and in the console (for example "steps has 5 items; supported: 2-4"). Copy that is within the character limits but still too wide or tall for this size is also refused ("does not fit the 16x9 layout"), never shrunk. Everything has landed by 3.0s; the last 0.4 s is the outro.
Source: editable HTML + local GSAP and fonts. Deterministic (no randomness, no clock). See the pack LICENCE.md and NOTICE.
Your agent fills the lead, roles and tail 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 Glide look.
Role-swap hook is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 5s.
Role-swap hook is included in the Glide 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.
This is 1 of 50
Role-swap hook comes as part of Glide: 50 elements, 4 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

A verb-led feature headline beside a floating white product card (rebuilt from ui.json) that tilts in from depth; text-free ghost cards drift behind.

A dashed burst collapses into the app icon, the wordmark slides out from it, then tagline, CTA button and URL. Holds briefly, never a long static card.

A centred problem question; 2-4 chips (time, money, messages) pop in around it and fly off the frame on arcs, then the key word gets a hand-drawn underline.

2-4 step cards along a curved route; the comet flies it and lights each stop. Horizontal wave in 16:9, a vertical zig-zag in 9:16, 4:5 and 1:1.
Community: coming soon · Markdown version of this page