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/Scene01.tsx
View on GitHubimport React from "react";
import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate, spring } from "remotion";
import { slamIn } from "../lib/anim";
import { resolveFont } from "../fonts";
import { OfferAdProps } from "../props";
// BEAT 1 — HEADLINE. Primary-color radial ground. headline_words slam in
// word-by-word (slamIn, ~7-frame stagger, scale-overshoot + motion-blur smear,
// settling on the downbeat). Then the subline + an animated bobbing down-arrow
// drop in. All copy/palette/fonts from props — nothing hardcoded.
export const Scene01: React.FC<{ p: OfferAdProps }> = ({ p }) => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const display = resolveFont(p.fonts.display, "display");
const body = resolveFont(p.fonts.body, "body");
const { primary_ground, light_ground } = p.palette;
const stagger = 7; // word stagger frames
const words = p.copy.headline_words;
// subline drops in at ~1.6s (frame 48).
const subStart = 48;
const sub = slamIn(frame - subStart, fps, {
fromScale: 1.4,
fromY: 28,
blurAmount: 12,
damping: 14,
stiffness: 190,
});
// animated down-arrow: bounces after it appears.
const arrowStart = 54;
const arrowIn = spring({
frame: frame - arrowStart,
fps,
config: { damping: 11, stiffness: 200, mass: 0.6 },
});
const arrowBounce =
frame > arrowStart ? Math.abs(Math.sin(((frame - arrowStart) / 22) * Math.PI)) * 18 : 0;
// headline auto-sizes down as word count grows so overshoot fits ~82% width.
const headlineSize = words.length >= 4 ? 108 : words.length === 3 ? 132 : 148;
return (
<AbsoluteFill style={{ background: primary_ground, overflow: "hidden" }}>
{/* radial warmth so the flat ground reads less like a solid block */}
<AbsoluteFill
style={{
background: `radial-gradient(circle at 50% 38%, ${lighten(primary_ground, 18)} 0%, ${primary_ground} 55%, ${darken(primary_ground, 14)} 100%)`,
}}
/>
<AbsoluteFill
style={{
alignItems: "center",
justifyContent: "center",
flexDirection: "column",
padding: "0 9%",
}}
>
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 2 }}>
{words.map((w, i) => {
const s = slamIn(frame - i * stagger, fps, {
fromScale: 1.85,
blurAmount: 24,
damping: 10,
stiffness: 230,
mass: 0.7,
});
return (
<div
key={i}
style={{
...s,
fontFamily: display,
fontSize: headlineSize,
color: light_ground,
letterSpacing: "-0.04em",
lineHeight: 0.95,
textAlign: "center",
textShadow: "0 6px 30px rgba(0,0,0,0.28)",
whiteSpace: "nowrap",
}}
>
{w}
</div>
);
})}
</div>
<div
style={{
...sub,
marginTop: 70,
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: 14,
}}
>
<div
style={{
fontFamily: body,
fontWeight: 600,
fontSize: 46,
color: lighten(light_ground, 0),
letterSpacing: "0.06em",
textTransform: "lowercase",
}}
>
{p.copy.subline}
</div>
<div
style={{
fontSize: 78,
color: light_ground,
lineHeight: 1,
opacity: interpolate(frame, [arrowStart, arrowStart + 5], [0, 1], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
}),
transform: `translateY(${arrowBounce}px) scale(${interpolate(arrowIn, [0, 1], [0.4, 1])})`,
}}
>
↓
</div>
</div>
</AbsoluteFill>
</AbsoluteFill>
);
};
// ---- tiny hex helpers (lighten/darken a ground for the radial vignette) ----
function clamp(n: number) {
return Math.max(0, Math.min(255, Math.round(n)));
}
function hexToRgb(hex: string): [number, number, number] {
const h = hex.replace("#", "");
const v = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
return [parseInt(v.slice(0, 2), 16), parseInt(v.slice(2, 4), 16), parseInt(v.slice(4, 6), 16)];
}
function rgbToHex(r: number, g: number, b: number) {
return "#" + [r, g, b].map((n) => clamp(n).toString(16).padStart(2, "0")).join("");
}
export function lighten(hex: string, pct: number) {
const [r, g, b] = hexToRgb(hex);
const f = pct / 100;
return rgbToHex(r + (255 - r) * f, g + (255 - g) * f, b + (255 - b) * f);
}
export function darken(hex: string, pct: number) {
const [r, g, b] = hexToRgb(hex);
const f = 1 - pct / 100;
return rgbToHex(r * f, g * f, b * f);
}
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 |