
Price drop
The old price is struck through, the new price counts down to its value and a saving badge lands beside the product.
- 1:1native
- 16:9native
- 9:16native
- 4:5native
8 of 50 in the Cutout pack
A brand-colour card: the discount counts up, the cursor taps the code chip and it copies; the expiry line follows..
Watermarked preview. The Cutout pack includes all 50 elements, clean and editable, in every size.
Use the AgentFrames Cutout pack. Add a `offerCode` beat to plan.json on a `stone` canvas with slots `eyebrow`, `percent`, `label`, `code`, `copied`, `expiry` and `image` 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 |
|---|---|---|---|
eyebrow | string | eyebrow: {"type":"string","minLength":0,"maxLength":24}. | Launch week |
percent | number | percent: {"type":"integer","minimum":5,"maximum":90}. | 20 |
label | string | label: {"type":"string","minLength":1,"maxLength":8}. | OFF |
code | string | code: {"type":"string","minLength":3,"maxLength":14,"pattern":"^[A-Z0-9-]+$"}. | GLOW20 |
copied | string | copied: {"type":"string","minLength":1,"maxLength":12}. | Copied |
expiry | string | expiry: {"type":"string","minLength":0,"maxLength":32}. | Ends Sunday at midnight |
image | string | image: {"type":"string","format":"image0","minLength":0,"maxLength":6000000}. | assets/af-cutout/media/fawn/cut-mist.webp |
Offer + discount code · role: Offer. A brand-colour card: the discount counts up, the cursor taps the code chip and it copies; the expiry line follows.
Native 1920×1080, 4.5s at 30 fps. Product Ads (content type menu-product). Use the matching aspect variant; never stretch another size.
Copy every manifest file path→target, plus af-cutout-runtime. Mount with a unique host id, data-composition-id="af-cutout-offer-code-16x9", data-composition-src="compositions/af-cutout-offer-code-16x9.html" and data-variable-values (JSON object). The starter projects already contain everything; there, edit brand.json and products.json and run npm run brand.
eyebrow: {"type":"string","minLength":0,"maxLength":24}percent: {"type":"integer","minimum":5,"maximum":90}label: {"type":"string","minLength":1,"maxLength":8}code: {"type":"string","minLength":3,"maxLength":14,"pattern":"^[A-Z0-9-]+$"}copied: {"type":"string","minLength":1,"maxLength":12}expiry: {"type":"string","minLength":0,"maxLength":32}image: {"type":"string","format":"image0","minLength":0,"maxLength":6000000}Images (format: image) are paths inside the project (assets/products/serum.png) or inline base64. Product images must be cut-outs: transparent PNG or WebP, the product only, trimmed, at least 900 px tall. Photos are JPG/WebP, at least 1200 px on the short side; they are cropped to fill (object-fit: cover). A missing file stops the block with "image not found: <path>".
brandName (1-16, the typeset wordmark), wordmarkFont (unbounded | fraunces | geist), logo (empty = typeset wordmark, or an image path / base64; used for the wordmark and the composer avatar), primary / secondary / tint (#RRGGBB), canvas (stone | blush | night). Text on brand colours picks white or near-black automatically for contrast; a primary too close to the canvas is replaced by ink for the wordmark.
Headline syntax (line, tagline): \n breaks a line, *word* takes the brand primary.
Out-of-range input stops the block with a message on data-cutout-error and in the console (for example "variants has 5 items; supported: 2-4"). Copy that is within the character limits but still too wide for this size is refused ("does not fit the 16x9 layout"), never shrunk. The build has landed by 2.7s; 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 eyebrow, percent, label, code, copied, expiry and image 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 Cutout look.
Offer + discount code is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.
Offer + discount code is included in the Cutout 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
Offer + discount code comes as part of Cutout: 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.

The old price is struck through, the new price counts down to its value and a saving badge lands beside the product.

2-4 products drop into a box one at a time; the line items add up, then the separate total is struck and the bundle price lands.

The product waits as a silhouette while a real-seconds countdown ticks to zero, then it develops into colour and "live now" lands.

2-4 products stand on a ruler at true relative heights (from the size you give), each with its size label.
Community: coming soon · Markdown version of this page