Clip Ad 30s 1
A 30-second cold video ad (hook, problem, offer, proof, button) sequenced from Live frames, each scene dipping through the band into the next; feed traffic to a product page, vertical first.
Use it in a prompt
Use the video/clip-ad-30s 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-30s.tsx. - Import it and pass your copy and images (Props tab):
import { FRAMES } from "@/components/funneldna/video/clip-ad-30s"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/clip-ad-30s/component.tsx 127 lines
// When to use: A 30-second cold video ad (hook, problem, offer, proof, button) sequenced from Live frames, each scene dipping through the band into the next; feed traffic to a product page, vertical first.
import * as React from "react"
import { AbsoluteFill, Audio, Sequence, interpolate, useCurrentFrame } from "remotion"
import { CLAMP, IN_OUT, T, VideoStage, progress, type VideoFormat, type VideoMeta, type Word } from "../fx/video-kit"
import { HookPhotoPush } from "./hook-photo-push"
import { HookKineticQuestion } from "./hook-kinetic-question"
import { OfferStackReveal } from "./offer-stack-reveal"
import { TestimonialCard } from "./testimonial-card"
import { CtaEndCard } from "./cta-end-card"
import { CaptionsBurned, type CaptionScene, type CaptionStyle } from "./captions-burned"
export const video = { fps: 30, durationInFrames: 900, formats: ["vertical", "square", "landscape"], poster: 890 } satisfies VideoMeta
/** The Live frames a storyboard may name. Clips import frames; they never copy them. */
export const FRAMES = {
"video/hook-photo-push": HookPhotoPush,
"video/hook-kinetic-question": HookKineticQuestion,
"video/offer-stack-reveal": OfferStackReveal,
"video/testimonial-card": TestimonialCard,
"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-photo-push", "video/hook-kinetic-question"])
/**
* Frames that do not compose for a format play through a Live stand-in that takes the same copy props (line,
* highlight, scene, tone). The photo hook is built for 16:9 and 9:16 only. In 1:1 its line ran off the top and into
* the caption band, so square plays it as the kinetic hook. That keeps the same words, swipe and photo.
*/
const STAND_IN: Partial<Record<VideoFormat, Partial<Record<FrameId, FrameId>>>> = {
square: { "video/hook-photo-push": "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 (the hooks). */
captions?: boolean
}
/** The skill's timeline.json, one entry per storyboard scene: speech length and word timings (seconds). An empty `words` is a silent scene of `speech` seconds. */
export type TimelineScene = { id?: string; speech?: number; words: Word[] }
export type ClipAd30sProps = {
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
/** Frames each scene takes to sink into the band, and the next takes to rise out of it. */
export const DIP = 6
const LEAD = 0.15, INTRO = 0.5, BREATHE = 0.6, END_HOLD = 3
/** Scene starts and lengths in frames, and the voice lead (seconds) inside each scene. Scenes butt end to end: the dip, not an overlap, joins them. */
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 words = tl?.words.length ? tl.words.map((w) => ({ ...w, s: w.s + lead, e: w.e + lead })) : undefined
const r = { ...sc, from: t, len, lead: tl ? lead : 0, words }
t += len
return r
})
}
/** Total frames (feed this to calculateMetadata). */
export const clipDuration = (p: Pick<ClipAd30sProps, "storyboard" | "timeline">) =>
layout(p.storyboard ?? [], p.timeline).reduce((n, s) => n + s.len, 0) || video.durationInFrames
export const calculateMetadata = ({ props }: { props: ClipAd30sProps }) => ({ durationInFrames: clipDuration(props) })
/** A 30-second ad: storyboard scenes joined by a dip through the band (6 frames out, 6 in), burned captions, optional voice and music. */
export function ClipAd30s({ format = "vertical", durationInFrames, storyboard = [], timeline, captions = "big-word", voice, music }: ClipAd30sProps) {
const scenes = layout(storyboard, timeline)
const total = durationInFrames ?? clipDuration({ storyboard, timeline })
const spoken = !!voice || scenes.some((s) => s.voice)
const bed = spoken ? 0.12 : 0.4
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[STAND_IN[format]?.[s.frame] ?? 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} layout="none">
<DipThroughBand len={s.len} first={i === 0} last={last}>{inner}</DipThroughBand>
{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, bed, bed, 0], CLAMP)} />}
</VideoStage>
)
}
export default ClipAd30s
/** The scene sinks into the band over its last DIP frames and the next rises out of it over its first DIP frames: a pure function of the scene's frame, no wipe, no overlap. */
function DipThroughBand({ len, first, last, children }: { len: number; first: boolean; last: boolean; children?: React.ReactNode }) {
const f = useCurrentFrame()
const into = first ? 0 : 1 - progress(f, 0, DIP, IN_OUT)
const out = last ? 0 : progress(f, len - DIP, len, IN_OUT)
const o = Math.max(into, out)
return (
<AbsoluteFill>
{children}
{o > 0 && <AbsoluteFill aria-hidden style={{ background: T.band, opacity: o }} />}
</AbsoluteFill>
)
}
pieces/video/clip-ad-30s/specimen.tsx 68 lines
import * as React from "react"
import floorPhoto from "../assets/fd4e23a8c3ce799f.webp"
import foamPhoto from "../assets/f00c19baa3e93a25.webp"
import bedShot from "../assets/e1ec4779aa7f3234.webp"
import mayaPortrait from "../assets/6454b37040901bf9.webp"
import doorPhoto from "../assets/e552a958a619d6d8.webp"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat, type Word } from "../../fx/video-kit"
import { ClipAd30s, video, type ClipAd30sProps, type StoryboardScene, type TimelineScene } from "../clip-ad-30s"
export const states = ["vertical", "square", "landscape"]
/**
* Sample voice timings at a brisk ad read; `speech` (seconds) lets a scene breathe past its last word, and `pace`
* scales the read (below 1 is a touch quicker) so a full line still lands inside its scene.
*/
function voiced(text: string, speech = 0, pace = 1): TimelineScene {
let t = 0
const words: Word[] = text.split(" ").map((w) => {
const d = (0.13 + 0.04 * w.replace(/[^a-z0-9]/gi, "").length) * pace
const word = { w, s: +t.toFixed(3), e: +(t + d).toFixed(3) }
t += d + (0.05 + (/[,.?!]$/.test(w) ? 0.2 : 0)) * pace
return word
})
return { speech: +Math.max(words[words.length - 1].e, speech).toFixed(3), words }
}
// Fictional sample brand: Hollin & Hound, an invented dog-bed maker. Every offer fact stands in for the page's own.
// The quote is sample proof for the specimen only; the testimonial scene is left unvoiced so no generated voice plays a customer.
// Every scene stands on a real photo or the lit product: the hook over the dog on the floor, the problem over the
// flattened foam in its own colours (band scrim on the text side, not a pale duotone on the light surface), the offer on
// its product stage, the quote over the dog waiting at the front door, and the end card with the bed.
export function sampleStoryboard(floor: string, foam: string, product: string, portrait: string, door: string): StoryboardScene[] {
return [
{ frame: "video/hook-kinetic-question", seconds: 5, props: { line: "She's slept on the floor since the old bed went flat.", highlight: "the old bed went flat.", scene: floor, treatment: "natural", focus: "72% 60%" } },
{ frame: "video/hook-kinetic-question", seconds: 4, props: { line: "Cheap foam flattens in a month.", highlight: "in a month.", tone: "band", scene: foam, treatment: "natural" } },
{ frame: "video/offer-stack-reveal", seconds: 7, props: {
name: "The Hollin bed",
items: [{ name: "Memory-foam bed", value: "$129" }, { name: "Spare cover", value: "$29" }, { name: "100-night trial", value: "Included" }],
total: "$158", price: "$129", priceLabel: "Yours for:", terms: "Free shipping · 100 nights", product,
} },
{ frame: "video/testimonial-card", seconds: 7, props: { quote: "Biscuit hasn't touched the floor since.", highlight: "hasn't touched the floor", name: "Maya R.", place: "Leeds", portrait, scene: door, sceneFocus: "55% 65%" } },
{ frame: "video/cta-end-card", seconds: 7, props: { line: "Give her a bed that stays up.", button: "Shop the bed", terms: "$129 · free shipping", brand: "Hollin & Hound", product } },
]
}
// The offer line is read 2% brisker so it lands inside the 7 s ledger; the end card takes the freed second.
export const timeline: TimelineScene[] = [
voiced("She's slept on the floor since the old bed went flat.", 3.9),
voiced("Cheap foam flattens in a month.", 3.25),
voiced("The Hollin bed. Memory foam, a spare cover, and a hundred nights to try it. Just $129.", 6.25, 0.98),
{ speech: 6.25, words: [] },
voiced("Tap Shop the bed. She's earned it.", 3.85),
]
export const sample: ClipAd30sProps = { storyboard: sampleStoryboard(floorPhoto, foamPhoto, bedShot, mayaPortrait, doorPhoto), timeline, captions: "big-word" }
/** clipDuration(sample): scenes start at 0, 150, 270, 480 and 690; the end card runs 7 s and holds its last 3 s. */
export const durationInFrames = 900
/** Hook readable over its photo, hook swiped, problem swiped, ledger totalled, quote landed, button in, final hold. */
export const keyframes = [20, 136, 250, 460, 650, 790, 899]
/** The sample business in its own colours and type (sample-brands.json); Original and every preset stay one click away. */
export const sampleBrand = {"name":"Hollin & Hound","theme":"light","background":"#fbf7f4","colors":["#bd4d2b","#2e6b70"],"fonts":["Fraunces","Nunito Sans"],"button":"pill-bold"}
export default function ClipAd30sSpecimen({ state = "vertical" }: { state?: string }) {
// The customer portrait stays the quoted customer's own photo: a brand presenter or scene image must never stand in for the person quoted.
const props = { ...sample, storyboard: sampleStoryboard(slot("scene", floorPhoto), slot("scene", foamPhoto), slot("product", bedShot), mayaPortrait, slot("scene", doorPhoto)) }
return <VideoPreview component={ClipAd30s} props={props} format={state as VideoFormat} meta={video} durationInFrames={durationInFrames} />
}
| Name | Type | Details |
|---|---|---|
layout |
StoryboardScene[] |
|
format OptionalClipAd30s |
VideoFormat |
Default "vertical"
|
durationInFrames OptionalClipAd30s |
number |
|
storyboard OptionalClipAd30s |
StoryboardScene[] |
Default []
|
timeline OptionalClipAd30s |
TimelineScene[] |
|
captions OptionalClipAd30s |
CaptionStyle | false |
Default "big-word"
|
voice OptionalClipAd30s |
string |
|
music OptionalClipAd30s |
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.
-
6454b37040901bf9.webp
image/webp · 176 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB
-
e1ec4779aa7f3234.webp
image/webp · 240 KB
-
e552a958a619d6d8.webp
image/webp · 123 KB
-
f00c19baa3e93a25.webp
image/webp · 73.9 KB
-
fd4e23a8c3ce799f.webp
image/webp · 108 KB