Clip Launch Countdown 20s 1
A 20-second launch close cut hard on the beat (the real enrolment deadline, the offer stack, the page's button) sequenced from Live frames; warm traffic to the order page, vertical first.
Use it in a prompt
Use the video/clip-launch-countdown-20s 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-launch-countdown-20s.tsx. - Import it and pass your copy and images (Props tab):
import { FRAMES } from "@/components/funneldna/video/clip-launch-countdown-20s"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/clip-launch-countdown-20s/component.tsx 117 lines
// When to use: A 20-second launch close cut hard on the beat (the real enrolment deadline, the offer stack, the page's button) sequenced from Live frames; warm traffic to the order page, vertical first.
import * as React from "react"
import { Audio, Sequence, interpolate } from "remotion"
import { CLAMP, HOLD, VideoStage, type VideoFormat, type VideoMeta, type Word } from "../fx/video-kit"
import { CountdownDeadline } from "./countdown-deadline"
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: 600, formats: ["vertical", "square", "landscape"], poster: 590 } satisfies VideoMeta
/** The Live frames a storyboard may name. Clips import frames; they never copy them. */
export const FRAMES = {
"video/countdown-deadline": CountdownDeadline,
"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/countdown-deadline"])
/** The scene that needs a real closing time; without one the clip drops it rather than show a made-up deadline. */
const DEADLINE: FrameId = "video/countdown-deadline"
export type StoryboardScene = {
frame: FrameId
/** The frame's own props (copy, images, the deadline's closes/asOf/zone); `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 countdown). */
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 ClipLaunchCountdown20sProps = {
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
/** The music's tempo: when set, every cut between scenes lands on the nearest beat (never before a scene's last word plus its hold). */
bpm?: number
}
const FPS = 30
// Brisk: a short voice lead, a short breath after each line, the end card held 3 s.
const LEAD = 0.1, INTRO = 0.4, BREATHE = 0.4, END_HOLD = 3
const END_FRAMES = Math.round(END_HOLD * FPS)
const playable = (sc: StoryboardScene) => {
if (sc.frame !== DEADLINE) return true
const closes = sc.props?.closes
return typeof closes === "string" && closes.trim() !== ""
}
/** Scene starts and lengths in frames, the voice lead (seconds) and the words for each kept scene. */
export function layout(storyboard: StoryboardScene[], timeline?: TimelineScene[], bpm?: number) {
// Timeline entries stay paired with their storyboard scene, so a dropped deadline drops its take too.
const kept = storyboard.map((sc, i) => ({ sc, tl: timeline?.[i] })).filter(({ sc }) => playable(sc))
const beat = bpm && bpm > 0 ? (60 * FPS) / bpm : 0
let t = 0
return kept.map(({ sc, tl }, i) => {
const last = i === kept.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
let len = Math.round((tl ? lead + speech + (last ? END_HOLD : BREATHE) : sc.seconds) * FPS)
if (beat && !last) {
// Cut on the beat: the nearest beat to the planned cut, pushed later until the line and the hold fit.
const floor = t + (tl ? Math.round((lead + speech) * FPS) : 0) + HOLD
let k = Math.max(1, Math.round((t + len) / beat))
while (Math.round(k * beat) < floor) k++
len = Math.round(k * beat) - t
}
const r = { ...sc, from: t, len, lead: tl ? lead : 0, tl, 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<ClipLaunchCountdown20sProps, "storyboard" | "timeline" | "bpm">) =>
layout(p.storyboard ?? [], p.timeline, p.bpm).reduce((n, s) => n + s.len, 0) || video.durationInFrames
export const calculateMetadata = ({ props }: { props: ClipLaunchCountdown20sProps }) => ({ durationInFrames: clipDuration(props) })
/** A 20-second launch close: storyboard scenes on hard cuts (each scene owns its frames, no overlap), burned captions, optional voice and music. */
export function ClipLaunchCountdown20s({ format = "vertical", durationInFrames, storyboard = [], timeline, captions = "big-word", voice, music, bpm }: ClipLaunchCountdown20sProps) {
const scenes = layout(storyboard, timeline, bpm)
const total = durationInFrames ?? clipDuration({ storyboard, timeline, bpm })
const capTimeline: CaptionScene[] = scenes.flatMap((s) =>
s.tl?.words.length && (s.captions ?? !SAYS_THE_LINE.has(s.frame)) ? [{ start: (s.from + s.lead * FPS) / FPS, words: s.tl.words }] : [])
// The bed ducks under any voice; on its own it carries the cuts.
const bed = voice || scenes.some((s) => s.voice) ? 0.12 : 0.4
return (
<VideoStage format={format} tone="band">
{scenes.map((s, i) => {
const Frame = FRAMES[s.frame] as React.ComponentType<Record<string, unknown>>
const hold = s.frame === "video/cta-end-card" ? { holdFrames: Math.min(END_FRAMES, Math.max(HOLD, s.len - 30)) } : {}
return (
<Sequence key={i} from={s.from} durationInFrames={s.len} layout="none">
<Frame {...s.props} format={format} durationInFrames={s.len} words={s.words} {...hold} />
{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 ClipLaunchCountdown20s
pieces/video/clip-launch-countdown-20s/specimen.tsx 56 lines
import deadlineScene from "../assets/7f5245e984ea539c.webp"
import closeScene from "../assets/30f86ea4f152fe42.webp"
import * as React from "react"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat, type Word } from "../../fx/video-kit"
import { ClipLaunchCountdown20s, video, type ClipLaunchCountdown20sProps, type StoryboardScene, type TimelineScene } from "../clip-launch-countdown-20s"
export const states = ["vertical", "square", "landscape"]
/** Sample voice timings at a brisk 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: Studio Ledger, an invented 90-day bookkeeping course. The deadline, prices and terms stand in for the page's own; no proof scene.
export function sampleStoryboard(deadline: string, close: string): StoryboardScene[] {
return [
{ frame: "video/countdown-deadline", seconds: 5, props: {
line: "Spring cohort enrolment closes in", closes: "2027-03-12T23:59:00-05:00", asOf: "2027-03-09T14:22:41-05:00", zone: "ET", scene: deadline,
} },
{ frame: "video/offer-stack-reveal", seconds: 8, props: {
name: "Studio Ledger · spring cohort",
items: [{ name: "12 weekly lessons", value: "$240" }, { name: "Weekly live Q&A", value: "$180" }, { name: "Studio bookkeeping templates", value: "$96" }],
total: "$516", priceLabel: "Join for", price: "$396 once", terms: "About $4.40 a day",
} },
{ frame: "video/cta-end-card", seconds: 7, props: {
line: "Join before Friday night.", button: "Join the spring cohort", terms: "Closes Fri 11:59 p.m. ET · $396 once", brand: "Studio Ledger", scene: close,
} },
]
}
/** One take per scene; the countdown's take matches its on-screen line word for word, then lets the clock run. */
export const timeline: TimelineScene[] = [
voiced("Spring cohort enrolment closes in...", 2.19),
voiced("12 weekly lessons. A live Q&A every week. The studio bookkeeping templates. All of it for $396, once.", 0.43),
voiced("Join before Friday night. Tap Join the spring cohort.", 0.41),
]
export const sample: ClipLaunchCountdown20sProps = { storyboard: sampleStoryboard(deadlineScene, closeScene), timeline, captions: "big-word" }
/** clipDuration(sample): hard cuts at 150 and 390 (layout() from the timeline above); 20 s. */
export const durationInFrames = 600
/** Countdown tiles read, the clock running, the offer priced, the button in, final hold. */
export const keyframes = [18, 100, 330, 470, 599]
/** The sample business in its own colours and type (sample-brands.json); Original and every preset stay one click away. */
export const sampleBrand = {"name":"Studio Ledger","theme":"light","background":"#f7f5ff","colors":["#6a3df0","#1fbf8f"],"fonts":["Fraunces","Nunito Sans"],"band":"#e6deff","button":"square"}
export default function ClipLaunchCountdown20sSpecimen({ state = "vertical" }: { state?: string }) {
const props = { ...sample, storyboard: sampleStoryboard(slot("scene", deadlineScene), slot("scene", closeScene)) }
return <VideoPreview component={ClipLaunchCountdown20s} props={props} format={state as VideoFormat} meta={video} durationInFrames={durationInFrames} />
}
| Name | Type | Details |
|---|---|---|
layout |
StoryboardScene[] |
|
format OptionalClipLaunchCountdown20s |
VideoFormat |
Default "vertical"
|
durationInFrames OptionalClipLaunchCountdown20s |
number |
|
storyboard OptionalClipLaunchCountdown20s |
StoryboardScene[] |
Default []
|
timeline OptionalClipLaunchCountdown20s |
TimelineScene[] |
|
captions OptionalClipLaunchCountdown20s |
CaptionStyle | false |
Default "big-word"
|
voice OptionalClipLaunchCountdown20s |
string |
|
music OptionalClipLaunchCountdown20s |
string |
|
bpm OptionalClipLaunchCountdown20s |
number |
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.
scene- A wide atmosphere photo behind or beside the copy.
-
30f86ea4f152fe42.webp
image/webp · 38.7 KB
-
7f5245e984ea539c.webp
image/webp · 39.6 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB