gooseworks-ai/goose-skills / skills/video/render-offer-ad
render-offer-ad
VerifiedRender a punchy ~12s vertical (9:16) music-only direct-response OFFER ad as a 4-beat kinetic-typography film — HEADLINE slam → real PRODUCT drop → CLAIM/proof → CTA pill — from one config of copy slots, a real product photo, a brand palette, fonts, bpm, and beat split. DETERMINISTIC + FREE (a bundled Remotion project; springs + interpolate, no AI-gen for visuals). Backgrounds are engine gradient divs off the palette, props are inline SVG, the ONLY composited bitmap is the REAL product photo (objectFit:contain, never stretched), and ALL headline/claim/CTA/URL/wordmark text is typeset in the engine — never AI-rendered (the format's credibility guard). A driver binds the config to Remotion input props, renders the 9:16 master, and derives a 1:1 center-crop with ffmpeg. Two gating checks run before render (claim verbs must match the product's physical format; the claim beat needs an edge-entry mechanism prop). Use for the motion-graphics-offer-ad format.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.7 KB |
| project/.gitignore | other | 143 B |
| project/package.json | manifest | 503 B |
| project/public/.gitkeep | other | 0 B |
| project/remotion.config.ts | script | 116 B |
| project/src/Main.tsx | other | 1.5 KB |
| project/src/Root.tsx | other | 1.0 KB |
| project/src/fonts.ts | script | 1.4 KB |
| project/src/index.ts | script | 108 B |
| project/src/lib/anim.ts | script | 4.8 KB |
| project/src/props.ts | script | 4.2 KB |
| project/src/scenes/Scene01.tsx | other | 5.0 KB |
| project/src/scenes/Scene02.tsx | other | 4.9 KB |
| project/src/scenes/Scene03.tsx | other | 6.5 KB |
| project/src/scenes/Scene04.tsx | other | 3.5 KB |
| project/tsconfig.json | config | 293 B |
| scripts/config.example.json | config | 2.7 KB |
| scripts/render.py | script | 11.8 KB |
| skill.meta.json | config | 210 B |
| tests/smoke-test.md | markdown | 4.8 KB |
project/src/scenes/Scene02.tsx
View on GitHubimport React from "react";
import { AbsoluteFill, Img, staticFile, useCurrentFrame, useVideoConfig, interpolate } from "remotion";
import { dropIn, bob, popIn, wipe } from "../lib/anim";
import { resolveFont } from "../fonts";
import { OfferAdProps } from "../props";
import { lighten, darken } from "./Scene01";
// BEAT 2 — PRODUCT. Light radial ground. The REAL product photo drops in from
// the top (dropIn) and idle-bobs (bob), objectFit:contain so aspect is
// preserved (NEVER stretched). The motif_chip pops in (popIn). Optional GENERIC
// competitor shape + horizontal strike-through (wipe) — never a named brand.
export const Scene02: React.FC<{ p: OfferAdProps }> = ({ p }) => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const display = resolveFont(p.fonts.display, "display");
const { primary_ground, light_ground, highlight_chip } = p.palette;
// product photo: drop from above, settle, then gentle idle bob.
const drop = dropIn(frame, fps, -680, { damping: 13, stiffness: 150, mass: 1.0, blur: 22 });
const settled = Math.max(0, frame - 22);
const bobY = bob(settled, 9, 64);
const tilt = interpolate(frame, [0, 22], [-7, 0], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
});
// generic competitor column (left/back) — drawn, then struck through.
const colStart = 30;
const colPop = popIn(frame - colStart, fps, { damping: 12, stiffness: 180, mass: 0.8 });
const strike = wipe(frame, 52, 14);
// motif chip pops in top-left, slight rotate.
const chipStart = 64;
const chip = popIn(frame - chipStart, fps, { rotate: -10, damping: 9, stiffness: 240 });
return (
<AbsoluteFill style={{ background: light_ground, overflow: "hidden" }}>
<AbsoluteFill
style={{
background: `radial-gradient(circle at 50% 46%, ${lighten(light_ground, 20)} 0%, ${light_ground} 60%, ${darken(light_ground, 6)} 100%)`,
}}
/>
{/* generic competitor column — abstract typeset shape, struck through */}
{p.show_competitor_strike && (
<div
style={{
position: "absolute",
left: 96,
top: 540,
opacity: colPop.opacity * 0.85,
transform: `scale(${colPop.scale}) rotate(${colPop.rot}deg)`,
}}
>
<div
style={{
width: 240,
height: 360,
borderRadius: 22,
background: "#E6DED3",
border: "5px solid #CDBFAE",
display: "flex",
alignItems: "center",
justifyContent: "center",
position: "relative",
}}
>
<div
style={{
fontFamily: display,
fontSize: 40,
color: "#9A8B76",
letterSpacing: "0.04em",
transform: "rotate(-90deg)",
whiteSpace: "nowrap",
}}
>
OLD WAY
</div>
<div
style={{
position: "absolute",
left: "50%",
top: "50%",
width: `${strike * 300}px`,
height: 16,
background: primary_ground,
borderRadius: 8,
transform: "translate(-50%, -50%) rotate(-18deg)",
boxShadow: "0 2px 10px rgba(0,0,0,0.18)",
}}
/>
</div>
</div>
)}
{/* REAL product photo, drop + bob, aspect preserved */}
<AbsoluteFill style={{ alignItems: "center", justifyContent: "center" }}>
<div
style={{
width: 620,
height: 1100,
transform: `translateY(${drop.y + bobY}px) rotate(${tilt}deg)`,
opacity: drop.opacity,
filter: drop.blur > 0.3 ? `blur(${drop.blur}px)` : undefined,
}}
>
<Img
src={staticFile(p.product_image)}
style={{
width: "100%",
height: "100%",
objectFit: "contain",
filter: "drop-shadow(0 38px 50px rgba(120,80,40,0.30))",
}}
/>
</div>
</AbsoluteFill>
{/* motif sticker-chip, top-left over the product */}
<div
style={{
position: "absolute",
left: 110,
top: 300,
transform: `scale(${chip.scale}) rotate(${-6 + chip.rot}deg)`,
opacity: chip.opacity,
}}
>
<div
style={{
background: primary_ground,
color: light_ground,
fontFamily: display,
fontSize: 56,
letterSpacing: "0.01em",
padding: "20px 40px",
borderRadius: 999,
border: `6px solid ${highlight_chip}`,
boxShadow: "0 14px 36px rgba(0,0,0,0.22)",
whiteSpace: "nowrap",
}}
>
{p.copy.motif_chip}
</div>
</div>
</AbsoluteFill>
);
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |