Clip Ad 15s 1
A 15-second video ad (hook, problem, offer, button) sequenced from Live frames; cold traffic to a front-end page, vertical first.
Use it in a prompt
Use the video/clip-ad-15s video clip from the FunnelDNA library in my brand (vertical and square and landscape). Follow the video skill. Ask me for the script facts, voice and images you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/video/clip-ad-15s.tsx. - Import it and pass your copy and images (Props tab):
import { FRAMES } from "@/components/funneldna/video/clip-ad-15s"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/clip-ad-15s/component.tsx 96 lines
// When to use: A 15-second video ad (hook, problem, offer, button) sequenced from Live frames; cold traffic to a front-end page, vertical first.
import * as React from "react"
import { Audio, Sequence, interpolate } from "remotion"
import { CLAMP, Crossfade, VideoStage, XFADE, type VideoFormat, type VideoMeta, type Word } from "../fx/video-kit"
import { HookKineticQuestion } from "./hook-kinetic-question"
import { OfferStackReveal } from "./offer-stack-reveal"
import { CtaEndCard } from "./cta-end-card"
import { CaptionsBurned, type CaptionScene, type CaptionStyle } from "./captions-burned"
export const video = { fps: 30, durationInFrames: 450, formats: ["vertical", "square", "landscape"], poster: 440 } satisfies VideoMeta
/** The Live frames a storyboard may name. Clips import frames; they never copy them. */
export const FRAMES = {
"video/hook-kinetic-question": HookKineticQuestion,
"video/offer-stack-reveal": OfferStackReveal,
"video/cta-end-card": CtaEndCard,
} as const
export type FrameId = keyof typeof FRAMES
/** Frames whose on-screen type is the voice line itself: captions would only repeat it. */
const SAYS_THE_LINE = new Set<FrameId>(["video/hook-kinetic-question"])
export type StoryboardScene = {
frame: FrameId
/** The frame's own props (copy, images); `format`, `durationInFrames` and `words` are set by the clip. */
props: Record<string, unknown>
/** Scene length when no timeline is given. */
seconds: number
/** Optional voice take for this scene (starts with the scene's voice lead). */
voice?: string
/** Burn captions over this scene; default off for frames whose own type already says the line (kinetic hooks). */
captions?: boolean
}
/** The skill's timeline.json, one entry per storyboard scene: speech length and word timings (seconds). */
export type TimelineScene = { id?: string; speech?: number; words: Word[] }
export type ClipAd15sProps = {
format?: VideoFormat
durationInFrames?: number
storyboard?: StoryboardScene[]
timeline?: TimelineScene[]
/** Burned captions from the timeline; big-word by default since most plays are muted. false = off. */
captions?: CaptionStyle | false
voice?: string
music?: string
}
const FPS = 30
const LEAD = 0.15, INTRO = 0.5, BREATHE = 0.6, END_HOLD = 2
/** Scene starts and lengths in frames, and the voice lead (frames) inside each scene. */
export function layout(storyboard: StoryboardScene[], timeline?: TimelineScene[]) {
let t = 0
return storyboard.map((sc, i) => {
const tl = timeline?.[i]
const last = i === storyboard.length - 1
const lead = i === 0 ? INTRO : LEAD
const speech = tl ? tl.speech ?? (tl.words.length ? tl.words[tl.words.length - 1].e : 0) : 0
const len = Math.round((tl ? lead + speech + (last ? END_HOLD : BREATHE) : sc.seconds) * FPS)
const r = { ...sc, from: t, len, lead: tl ? lead : 0, words: tl?.words.map((w) => ({ ...w, s: w.s + lead, e: w.e + lead })) }
t += len
return r
})
}
/** Total frames (feed this to calculateMetadata). */
export const clipDuration = (p: Pick<ClipAd15sProps, "storyboard" | "timeline">) =>
layout(p.storyboard ?? [], p.timeline).reduce((n, s) => n + s.len, 0) || video.durationInFrames
export const calculateMetadata = ({ props }: { props: ClipAd15sProps }) => ({ durationInFrames: clipDuration(props) })
/** A 15-second ad: storyboard scenes crossfaded over 10 frames, burned captions, optional voice and music. */
export function ClipAd15s({ format = "vertical", durationInFrames, storyboard = [], timeline, captions = "big-word", voice, music }: ClipAd15sProps) {
const scenes = layout(storyboard, timeline)
const total = durationInFrames ?? clipDuration({ storyboard, timeline })
const capTimeline: CaptionScene[] = scenes
.filter((s) => s.words?.length && (s.captions ?? !SAYS_THE_LINE.has(s.frame)))
.map((s) => ({ start: (s.from + s.lead * FPS) / FPS, words: timeline![scenes.indexOf(s)].words }))
return (
<VideoStage format={format} tone="band">
{scenes.map((s, i) => {
const Frame = FRAMES[s.frame] as React.ComponentType<Record<string, unknown>>
const last = i === scenes.length - 1
const inner = <Frame {...s.props} format={format} durationInFrames={s.len} words={s.words} {...(s.frame === "video/cta-end-card" ? { holdFrames: Math.round(END_HOLD * FPS) } : {})} />
return (
<Sequence key={i} from={s.from} durationInFrames={s.len + (last ? 0 : XFADE)} layout="none">
<Crossfade first={i === 0} out={last ? undefined : s.len}>{inner}</Crossfade>
{s.voice && <Sequence from={Math.round(s.lead * FPS)} layout="none"><Audio src={s.voice} /></Sequence>}
</Sequence>
)
})}
{captions && capTimeline.length > 0 && <CaptionsBurned format={format} timeline={capTimeline} style={captions} durationInFrames={total} />}
{voice && <Audio src={voice} />}
{music && <Audio src={music} volume={(f) => interpolate(f, [0, 20, total - 50, total], [0, voice || scenes.some((s) => s.voice) ? 0.12 : 0.4, voice || scenes.some((s) => s.voice) ? 0.12 : 0.4, 0], CLAMP)} />}
</VideoStage>
)
}
export default ClipAd15s
pieces/video/clip-ad-15s/specimen.tsx 54 lines
import __studioImage55458339 from "../assets/55458339a5012fc0.webp";
import __studioImagec1210283 from "../assets/c1210283502f09ae.webp";
import __studioImageaf15118e from "../assets/af15118ee3543868.webp";
import * as React from "react"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat, type Word } from "../../fx/video-kit"
import { ClipAd15s, video, type ClipAd15sProps, type StoryboardScene, type TimelineScene } from "../clip-ad-15s"
export const states = ["vertical", "square", "landscape"]
/** Sample voice timings at a brisk ad read; `pad` lets a scene breathe past its last word. */
function voiced(text: string, pad = 0): TimelineScene {
let t = 0
const words: Word[] = text.split(" ").map((w) => {
const d = 0.13 + 0.04 * w.replace(/[^a-z0-9]/gi, "").length
const word = { w, s: +t.toFixed(3), e: +(t + d).toFixed(3) }
t += d + 0.05 + (/[,.?!]$/.test(w) ? 0.2 : 0)
return word
})
return { speech: +(words[words.length - 1].e + pad).toFixed(3), words }
}
// Fictional sample brand: Kettle Row Coffee. Every offer fact stands in for the page's own; no proof scene.
export function sampleStoryboard(product: string, aisle: string, roaster: string): StoryboardScene[] {
return [
{ frame: "video/hook-kinetic-question", seconds: 3, props: { line: "Still buying supermarket coffee?", highlight: "supermarket coffee?", scene: aisle, focus: "35% 50%" } },
{ frame: "video/hook-kinetic-question", seconds: 3.5, props: { line: "Those beans were roasted months ago.", highlight: "months ago.", scene: aisle, treatment: "duotone", focus: "85% 60%" } },
{ frame: "video/offer-stack-reveal", seconds: 4.5, props: {
name: "Kettle Row Coffee", items: [{ name: "Fresh-roasted 12 oz bag", value: "$18" }, { name: "Brew guide card", value: "$4" }],
total: "$22", price: "Free", priceLabel: "Your first bag:", terms: "You cover $5 shipping", product,
} },
{ frame: "video/cta-end-card", seconds: 4, props: { line: "Your first bag is on us.", button: "Claim my first bag", terms: "Free bag · you cover $5 shipping", brand: "Kettle Row Coffee", product, scene: roaster } },
]
}
export const timeline: TimelineScene[] = [
voiced("Still buying supermarket coffee?"),
voiced("Those beans were roasted months ago."),
voiced("Your first bag is free. You just cover five dollars shipping.", 0.6),
voiced("Tap claim my first bag."),
]
// The designed coffee bag; the specimen swaps in the brand's product slot at render time.
export const sample: ClipAd15sProps = { storyboard: sampleStoryboard(__studioImage55458339, __studioImagec1210283, __studioImageaf15118e), timeline, captions: "big-word" }
/** clipDuration(sample): scenes start at 0, 87, 176 and 339 (layout() from the timeline below). */
export const durationInFrames = 451
/** Hook readable, hook swiped, problem swiped, price landed, button in, final hold. */
export const keyframes = [20, 76, 160, 318, 400, 450]
/** The sample business in its own colours and type (sample-palettes.md: rust-slate · slab); Original and every preset stay one click away. */
export const sampleBrand = { name: "Kettle Row Coffee", theme: "dark", background: "#1e2328", colors: ["#e2733b", "#8fb8de"], fonts: ["Fraunces", "Nunito Sans"] }
export default function ClipAd15sSpecimen({ state = "vertical" }: { state?: string }) {
const props = { ...sample, storyboard: sampleStoryboard(slot("product", __studioImage55458339), slot("scene", __studioImagec1210283), slot("scene", __studioImageaf15118e)) }
return <VideoPreview component={ClipAd15s} props={props} format={state as VideoFormat} meta={video} durationInFrames={durationInFrames} />
}
| Name | Type | Details |
|---|---|---|
layout |
StoryboardScene[] |
|
format OptionalClipAd15s |
VideoFormat |
Default "vertical"
|
durationInFrames OptionalClipAd15s |
number |
|
storyboard OptionalClipAd15s |
StoryboardScene[] |
Default []
|
timeline OptionalClipAd15s |
TimelineScene[] |
|
captions OptionalClipAd15s |
CaptionStyle | false |
Default "big-word"
|
voice OptionalClipAd15s |
string |
|
music OptionalClipAd15s |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
None listed in this pack.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
55458339a5012fc0.webp
image/webp · 47.7 KB
-
af15118ee3543868.webp
image/webp · 56.4 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB
-
c1210283502f09ae.webp
image/webp · 54.3 KB