12 of 50 in the Kernel pack

Pill Sweep Transition: Transition element for AI agents

Signature transition: the ink pill button slides in, expands to cover the frame for the cut, then shrinks back to a pill and exits right, with an optional mono chapter word..

  • 1:1native
  • 16:9native
  • 9:16native
  • 4:5native

Watermarked preview. The Kernel pack includes all 50 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Kernel pack. Add a `pillSweep` beat to plan.json on a `paper` canvas with slot `word` from my script. Then run validate → build → qa and show me qa/contact.jpg.

Variables

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
wordstringword: {"type":"string","minLength":1,"maxLength":18}.

What your agent can change

Pill Sweep Transition (signature) (Creative devices and transitions). Native 1920×1080, 1.2s at 30fps, transparent overlay transition.

Signature transition: the ink pill button slides in, expands to cover the frame for the cut, then shrinks back to a pill and exits right, with an optional mono chapter word.

Motion. Pill enters (0-0.24 s), expands into full cover (0.24-0.44 s), covers 0.44-0.70 s (0.26 s), contracts (0.70-0.90 s) and exits right (0.90-1.16 s). Why it moves. continuity: the pack's own button shape carries the eye across the cut.

Mount

Copy every manifest file path → target into your project (plus af-kernel-runtime). Mount with a unique host id, data-composition-id="af-kernel-pill-sweep-16x9", data-composition-src="compositions/af-kernel-pill-sweep-16x9.html", data-duration="1.2" and native 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 inside data-variable-values. Every slot is checked against constraints.json before anything draws; the block stops with a message naming the slot, its value and the fix (it never truncates or shrinks text to fit). Measured layout limits (lines per box, items per layout) are also enforced and reported the same way.

  • word: string. {"type":"string","minLength":1,"maxLength":18}
  • Transparent overlay: mount it above the two scenes, starting 0.6 s before the cut.
  • Leave word empty for a pure transition, or set a 1-3 word chapter cue.

Style (role "style", defaults from brand.json): brandName, series, colourway (paper | stone | night), accent, headingFont (Geist | Inter), monoFont (Geist Mono | JetBrains Mono), logo (empty or inline base64 image), footer. Footer meter: sceneIndex (zero-based) and sceneTotal.

Timing

1.2s. Covers the whole frame from 0.44 s to 0.70 s (0.26 s). Start it 0.6 s before the cut, on a track above both scenes, with style="z-index:10" on its mount (HyperFrames stacks clips by start time, so without it the next scene paints over the sweep).

Example

``json { "word": "" } ``

Source: editable HTML + the shared runtime. Facts in the example content: see the pack's docs/SOURCES.md.

FAQ

What can my AI agent change in Pill Sweep Transition?

Your agent fills the word slot 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 Kernel look.

Which aspect ratios does Pill Sweep Transition support?

Pill Sweep Transition is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 1.2s.

How do I get Pill Sweep Transition?

Pill Sweep Transition is included in the Kernel 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

Get the full Kernel pack

Pill Sweep Transition comes as part of Kernel: 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.

See the whole pack →

Wide (16:9) · 36s · made entirely with this pack

More in Kernel

See all 50 elements in Kernel →