CTA End Card 1
End card. The closing line sets ('Tap Send Me My Free Copy'), then the page's primary button appears drawn from the button role tokens (same colours, radius, depth and label as on the page), scales in, and is pressed once by frame (2px down, shadow tightens, releases) about a second later; under it one guarantee or terms line, and the logo slot small at the bottom: cta beat.
Use it in a prompt
Use the video/cta-end-card video frame from the FunnelDNA library in my brand (landscape and vertical). 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/cta-end-card.tsx. - Import it and pass your copy and images (Props tab):
import { CtaEndCard } from "@/components/funneldna/video/cta-end-card"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/cta-end-card/component.tsx 154 lines
import * as React from "react"
import { Img, useVideoConfig } from "remotion"
import noise from "../fx/textures/noise"
import {
ProductShot, Rise, useFitText, SafeArea, StageButton, StageField, StageLight, StagePhoto, T, TONES, VideoStage, cue, display, progress, springAt, SPRINGS, tween, useHeld, useStage, useWords, IN_OUT,
type VideoFormat, type VideoMeta, type Word,
} from "../fx/video-kit"
export const video = { fps: 30, durationInFrames: 210, formats: ["landscape", "vertical"], poster: 200 } satisfies VideoMeta
export type CtaEndCardProps = {
format?: VideoFormat
durationInFrames?: number
/** The closing line, as the voice says it. */
line?: string
/** The page's primary button label, word for word. */
button?: string
/** One guarantee or terms line under the button. */
terms?: string
/** Optional address in plain type ("kettlerow.com/first-bag"). */
url?: string
/** Logo image (pass slot("logo", …)); without one, `brand` is set as a small wordmark. */
logo?: string
brand?: string
/** Voice timings for `line`. */
words?: Word[]
/** Frames everything holds still at the end so the button can be read (default 90 = 3 s). */
holdFrames?: number
/** The product or cover (transparent cut-out; pass slot("product", …)), lit beside the line. */
product?: string
/** Scene photo behind everything (pass slot("scene", …)), in natural colour with a scrim on the copy side. */
scene?: string
/** The field: band (default, the product lit on a dark stage) or surface (the bright end). */
tone?: "band" | "surface"
}
// Success green holds 3:1 on surface and card; on a band the shield takes the line's own colour.
const Shield = ({ size, color }: { size: number; color: string }) => (
<svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke="currentColor" strokeWidth={2.4} strokeLinecap="round" strokeLinejoin="round" aria-hidden style={{ flex: "none", color }}>
<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
<path d="m9 12 2 2 4-4" />
</svg>
)
/** CTA: the closing line sets, the page's real button scales in and is pressed once, terms and logo, then a long hold. */
export function CtaEndCard({
format = "landscape",
durationInFrames = video.durationInFrames,
line = "",
button = "",
terms = "",
url = "",
logo = "",
brand = "",
words,
holdFrames = 90,
product = "",
scene = "",
tone = "band",
}: CtaEndCardProps) {
const hold = Math.min(Math.max(12, holdFrames), durationInFrames - 60)
const f = useHeld(durationInFrames, hold)
const live = durationInFrames - hold // frames that move
const { fps } = useVideoConfig()
const { u, portrait, height, text, format: fmt } = useStage()
const square = fmt === "square"
// The line follows the voice only when the voice says that line; otherwise it sets quickly on its own.
const sameLine = !!words && words.length === line.split(/\s+/).filter(Boolean).length
const timed = useWords(line, sameLine ? words : undefined, durationInFrames, { from: 2, span: 12 / durationInFrames })
const spoken = useWords("", words, durationInFrames)
const lineEnd = timed.length ? timed[timed.length - 1].at + 6 : 0
// The button lands as the voice says its first word (else after the line), always early enough to be pressed
// and released before the hold.
const btnAt = Math.min(Math.max(lineEnd + 2, cue(spoken, words ? button : undefined, lineEnd + 10)), live - 34)
const pressAt = Math.min(btnAt + 30, live - 18)
const press = tween(f, [pressAt, pressAt + 4], [0, 1], IN_OUT) - tween(f, [pressAt + 9, pressAt + 16], [0, 1], IN_OUT)
const btn = springAt(f, btnAt, fps, SPRINGS.firm)
const push = 1 + 0.03 * progress(f, 0, live, (t) => t)
const ink = tone === "band" ? T.bandInk : T.ink, muted = TONES[tone].muted
// Landscape with a product: the product lit on the left, the copy in a column on the right. Phones: product above.
const side = !!product && !portrait && !square
const stacked = portrait || square
// Column widths are the real SafeArea widths (side: 1920 − 880 − 150), so the measured fit wraps exactly as drawn.
const col = side ? 890 : stacked ? 912 : 1500
const shot = product
? side ? { size: 760, left: 70, top: 110 } : portrait ? { size: 470, left: (1080 - 470) / 2, top: 20 } : { size: 290, left: (1080 - 290) / 2, top: 8 }
: null
const top = shot && !side ? (portrait ? 500 : 290) : undefined
// Above the copy, the product shot carries the brand: the text wordmark is left out there (a logo image still shows).
const mark = logo || (brand && !(shot && !side) ? brand : "")
// The button is the page's button at full strength: on phones and square a thumb-sized, near-full-width bar.
const btnFont = Math.max(28, Math.min(64, (col - 112) / (Math.max(10, button.length) * 0.58)))
const btnH = stacked ? Math.max(156, btnFont * 2.7) : btnFont * 2.7
// The line takes whatever height the rest leaves inside the caption band, measured in the theme's face.
const avail = (height - (top !== undefined ? top * u : text.top) - text.bottom) / u
const fixed = (button ? (portrait ? 64 : 56) + btnH : 0) + (terms ? 36 + 50 : 0) + (url ? 16 + 50 : 0) + (mark ? (portrait ? 56 : 48) + 64 : 0)
const head = React.useRef<HTMLHeadingElement>(null)
const size = useFitText(head, line, {
boxW: col * u, boxH: Math.max(150, avail - fixed - 24) * u, guess: 96 * u,
max: (side ? 128 : portrait ? 136 : square ? 104 : 140) * u, min: 56 * u, lines: stacked ? [2, 3, 4] : [2, 3],
})
const s = (n: number) => n * u
return (
<VideoStage format={format} tone={tone}>
{scene
// Natural colour with a scrim only on the copy side, so the photo never turns into a fog of the band colour
// (light-band brands included); the copy side carries the contrast.
? <StagePhoto src={scene} frame={f} dur={live} push={[1.02, 1.08]} treatment="natural" tone={tone} side={side ? "right" : "bottom"} scrim={0.96} />
: <StageField tone={tone} texture={noise} opacity={tone === "band" ? 0.14 : 0.08} frame={f} />}
{shot && <StageLight x={side ? "22%" : "50%"} strength={tone === "band" ? 0.26 : 0.18} tone={tone === "band" ? "band-ink" : "accent-fill"} floor={side} />}
{shot && <ProductShot src={product} frame={f} at={0} size={shot.size * u} left={shot.left * u} top={shot.top * u} />}
<SafeArea inset={{ ...(side ? { left: 880 * u } : {}), ...(top !== undefined ? { top: top * u } : {}) }}
style={{ alignItems: "center", justifyContent: "center", textAlign: "center", transform: `scale(${push})` }}>
{line && (
<h2 ref={head} style={{ ...display(size, { lineHeight: 1.02 }), margin: 0, maxWidth: s(col), color: ink }}>
{timed.flatMap((x, i) => {
const k = springAt(f, x.at, fps, SPRINGS.pop)
const w = <span key={i} style={{ display: "inline-block", opacity: Math.min(1, k * 2), transform: `translateY(${(1 - k) * s(18)}px)` }}>{x.w}</span>
return i ? [" ", w] : [w]
})}
</h2>
)}
{button && (
<div style={{ marginTop: s(portrait ? 64 : 56), width: stacked ? "100%" : undefined, opacity: Math.min(1, btn * 2), transform: `scale(${0.7 + 0.3 * btn})` }}>
<StageButton label={button} press={press} height={btnH} fontSize={btnFont} style={stacked ? { width: "100%" } : undefined} />
</div>
)}
{terms && (
<Rise at={btnAt + 14} y={12}>
<div style={{ marginTop: s(36), display: "flex", alignItems: "center", justifyContent: "center", gap: s(14), fontSize: s(36), fontWeight: 600, color: muted, lineHeight: 1.3 }}>
<Shield size={s(44)} color={tone === "band" ? ink : T.success} />
<span>{terms}</span>
</div>
</Rise>
)}
{url && (
<Rise at={btnAt + 20} y={12}>
<div style={{ marginTop: s(16), fontSize: s(38), fontWeight: 600, color: ink, lineHeight: 1.3 }}>{url}</div>
</Rise>
)}
{mark && (
<Rise at={btnAt + 26} y={10} style={{ marginTop: s(portrait ? 64 : 48) }}>
{logo
? <Img src={logo} alt={brand} style={{ height: s(64), maxWidth: s(360), objectFit: "contain", display: "block" }} />
: <div style={{ ...display(s(44), { lineHeight: 1 }), color: ink, letterSpacing: "0" }}>{brand}</div>}
</Rise>
)}
</SafeArea>
</VideoStage>
)
}
export default CtaEndCard
pieces/video/cta-end-card/specimen.tsx 26 lines
import __studioImage5bd9daf0 from "../assets/5bd9daf0a5fe2f5f.webp";
import * as React from "react"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat } from "../../fx/video-kit"
import { CtaEndCard, video, type CtaEndCardProps } from "../cta-end-card"
export const states = ["landscape", "vertical"]
/** First words readable, button in, button pressed, final hold. */
export const keyframes = [20, 46, 64, 209]
// Fictional sample offer (the studio's sample kit); the label matches that page's button word for word.
export const sample: CtaEndCardProps = {
line: "Everything you need to launch, in one kit.",
button: "Yes! Give Me Instant Access",
terms: "One payment · 30-day money-back guarantee",
brand: "The Funnel Starter Kit",
// The designed shot; the specimen swaps in the brand's product slot at render time.
product: __studioImage5bd9daf0,
}
/** The sample business in its own colours and type (sample-palettes.md: violet-mint · tech); Original and every preset stay one click away. */
export const sampleBrand = { name: "The Funnel Starter Kit", theme: "light", background: "#f7f5ff", colors: ["#6a3df0", "#1fbf8f"], fonts: ["Space Grotesk", "Manrope"] }
export default function CtaEndCardSpecimen({ state = "landscape" }: { state?: string }) {
return <VideoPreview component={CtaEndCard} props={{ ...sample, logo: slot("logo", ""), product: slot("product", __studioImage5bd9daf0) }} format={state as VideoFormat} meta={video} />
}
| Name | Type | Details |
|---|---|---|
format OptionalCtaEndCard |
VideoFormat |
Default "landscape"
|
durationInFrames OptionalCtaEndCard |
number |
Default video.durationInFrames
|
line OptionalCtaEndCard |
string |
Default ""
|
button OptionalCtaEndCard |
string |
Default ""
|
terms OptionalCtaEndCard |
string |
Default ""
|
url OptionalCtaEndCard |
string |
Default ""
|
logo OptionalCtaEndCard |
string |
Default ""
|
brand OptionalCtaEndCard |
string |
Default ""
|
words OptionalCtaEndCard |
Word[] |
|
holdFrames OptionalCtaEndCard |
number |
Default 90
|
product OptionalCtaEndCard |
string |
Default ""
|
scene OptionalCtaEndCard |
string |
Default ""
|
tone OptionalCtaEndCard |
"band" | "surface" |
Default "band"
|
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.
logo- The brand’s logo mark.
product- The main product shot or cover (ebook, kit, bottle).
-
5bd9daf0a5fe2f5f.webp
image/webp · 158 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB