Price Reveal 1
The offer beat's price moment for an offer without a stack: the product stands lit on a stage beside an optional anchor line (a short anchor headline on phones), then a huge price lands with one easy fact (just the price, a per-day breakdown, or FREE plus shipping), in a sales video, VSL or video ad.
Use it in a prompt
Use the video/price-reveal 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/price-reveal.tsx. - Import it and pass your copy and images (Props tab):
import { PriceReveal } from "@/components/funneldna/video/price-reveal"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/price-reveal/component.tsx 313 lines
// When to use: The offer beat's price moment for an offer without a stack: the product stands lit on a stage beside an optional anchor line (a short anchor headline on phones), then a huge price lands with one easy fact (just the price, a per-day breakdown, or FREE plus shipping), in a sales video, VSL or video ad.
import * as React from "react"
import { useVideoConfig } from "remotion"
import linen from "../fx/textures/linen"
import {
CountUp, HOLD, ProductShot, Rise, SafeArea, StageField, StageLight, StagePhoto, TONES, VideoStage, cue, display, progress, springAt, SPRINGS,
useFitText, useHeld, useStage, useWords,
type VideoFormat, type VideoMeta, type Word,
} from "../fx/video-kit"
export const video = { fps: 30, durationInFrames: 150, formats: ["landscape", "vertical"], poster: 140 } satisfies VideoMeta
/** The sales-formats price presentation (named `variant` because `format` is the video format). */
export type PriceRevealVariant = "just-price" | "per-day" | "free-plus-shipping"
export type PriceRevealProps = {
format?: VideoFormat
durationInFrames?: number
/** just-price (default), per-day (the breakdown counts in under the price) or free-plus-shipping (FREE lands, then the shipping slides in with it). */
variant?: PriceRevealVariant
/** The set the product and copy share: band (default, the product lit on the deep end of the palette) or surface (the bright end, still a lit set with a floor). */
tone?: "band" | "surface"
/** Landscape: one short anchor line, only when the page states it ("A designer would charge $900 for this."). It opens the scene as the headline, then yields to the price and stays above it as a note. */
anchor?: string
/** Phones: the same anchor as a short headline ("A $28 hardcover."), set large above the price and kept there; phones never show the long anchor. Empty: the price opens the scene on phones. */
anchorShort?: string
/** The price exactly as the page shows it ("$47", or "FREE" for free-plus-shipping). A leading currency sign is set superscript. */
price?: string
/** free-plus-shipping: the shipping exactly as the page states it ("+ $7.95 shipping"). */
shipping?: string
/** per-day: the breakdown exactly as the page states it ("That's $1.57 a day"); its numbers count up. */
breakdown?: string
/** The plan terms, set under the price ("One-time payment"). Landscape only: on phones it is dropped rather than shrunk. */
terms?: string
/** The one easy fact's bold lead-in ("Instant download."). Landscape only, like the terms. */
factLead?: string
/** The rest of the fact, after its lead-in. */
fact?: string
/** The product or cover (transparent cut-out; pass slot("product", …)), large beside the copy in landscape, above it on phones. */
product?: string
/** Alt text for the product. */
productAlt?: string
/** Optional scene photo the product stands in (pass slot("scene", …)): natural colour, a scrim on the text side only. Empty: the lit set (light pool, floor, horizon) from the tokens. */
scene?: string
/** Photo focal point (CSS object-position). */
focus?: string
/** The spoken word the price lands on ("free"); default: the first spoken word after the anchor. */
priceCue?: string
/** Voice timings for the scene's line: the anchor takes the first words, the price lands on its cue, the shipping on the word after it. */
words?: Word[]
}
/** Landscape landed sizes (stage px): the price dominates, the notes stay readable at video size. */
const WIDE = { note: 60, price: 300, minPrice: 160, amount: 84, word: 64, perDay: 64, terms: 44, fact: 42, floorNote: 56, floorShip: 64, floorText: 40 }
/** Phone (and square) scale: no line under 44px on phones; terms and the fact are dropped there, never shrunk. */
const COMPACT = {
vertical: { head: 140, minHead: 64, price: 260, minPrice: 220, ship: 64, perDay: 60, product: 620, productTop: 70, gap: 24 },
square: { head: 104, minHead: 56, price: 200, minPrice: 150, ship: 52, perDay: 52, product: 400, productTop: 36, gap: 18 },
}
/** A wipe from the bottom edge up at progress r (0 hidden → 1 whole); the text stays full ink, so every frame of it holds contrast. */
const wipeIn = (r: number) => `inset(${((1 - Math.min(1, Math.max(0, r))) * 100).toFixed(2)}% -0.3em -0.3em -0.3em)`
/** A wipe from the bottom edge down at progress r (0 whole → 1 hidden). */
const wipeOut = (r: number) => `inset(-0.3em -0.3em ${(Math.min(1, Math.max(0, r)) * 100).toFixed(2)}% -0.3em)`
/** Offer: the product stands lit on the set, the anchor types on, the price springs in (86% to 100%) huge in the set's ink, then its detail, terms and one fact. */
export function PriceReveal({
format = "landscape",
durationInFrames = video.durationInFrames,
variant = "just-price",
tone = "band",
anchor = "",
anchorShort = "",
price = "",
shipping = "",
breakdown = "",
terms = "",
factLead = "",
fact = "",
product = "",
productAlt = "",
scene = "",
focus,
priceCue = "",
words,
}: PriceRevealProps) {
const f = useHeld(durationInFrames)
const { fps } = useVideoConfig()
const { u, width, height, text, format: fmt } = useStage()
const compact = fmt !== "landscape"
const c = compact ? COMPACT[fmt === "vertical" ? "vertical" : "square"] : null
const live = durationInFrames - HOLD
// Every entrance starts early enough to finish before the final hold.
const late = (n: number) => Math.max(0, Math.min(Math.round(n), live - 14))
const free = variant === "free-plus-shipping" && !!shipping
const perDay = variant === "per-day" && !!breakdown
// Text follows the set it sits on: --band-ink on the band, --ink on the surface (never --accent over the set).
const { ink } = TONES[tone]
// The opening line: landscape types the full anchor, phones the short anchor headline. Both take the anchor's voice words.
const opener = (compact ? anchorShort : anchor).trim()
const anchorCount = anchor.split(/\s+/).filter(Boolean).length
const anchorVoice = React.useMemo(() => (words?.length && anchorCount ? words.slice(0, anchorCount) : undefined), [words, anchorCount])
const typed = useWords(opener, anchorVoice, durationInFrames, { from: 3, span: 0.2 })
const spoken = useWords("", words, durationInFrames)
const lastWord = typed.length ? typed[typed.length - 1].at : 0
const said = spoken.length ? (priceCue ? cue(spoken, priceCue, -1) : (spoken[anchorCount]?.at ?? -1)) : -1
// The finished opener gets a beat on screen (about 0.8 s without a voice) before the price lands.
const priceAt = Math.max(0, Math.min(
typed.length ? Math.max(lastWord + 14, said >= 0 ? said - 4 : lastWord + 26) : said >= 0 ? said - 4 : 4,
live - 44,
))
const yieldAt = Math.max(lastWord + 2, priceAt - 8)
const shipAt = late(Math.max(priceAt + 6, said >= 0 ? (spoken.find((x) => x.at > said)?.at ?? priceAt + 14) : priceAt + 14))
const countAt = late(priceAt + 16)
const termsAt = late(free ? shipAt + 10 : perDay ? countAt + 14 : priceAt + 16)
const land = springAt(f, priceAt, fps, SPRINGS.firm)
const shipK = progress(f, shipAt, shipAt + 12)
// Landscape: the big anchor yields to a note above the price. Phones: the short headline stays put above it.
const exit = !compact && opener && price ? progress(f, yieldAt, yieldAt + 10) : 0
const note = progress(f, priceAt - 2, priceAt + 10)
// Layout in stage px. Landscape: the product stands on the left, the copy uses the full safe height beside it.
// Phones: the product in the upper part of the set, the headline, price and shipping centred under it.
const W = width / u, H = height / u
const bottom = text.bottom / u
const side = !!product && !compact
const colLeft = side ? 820 : text.left / u
const colW = W - colLeft - text.right / u
const box = !product ? null : c ? { size: c.product, top: c.productTop } : { size: 800, top: 100 }
const shot = box && { ...box, left: compact ? (W - box.size) / 2 : 40 }
const slotTop = shot && compact ? Math.max(text.top / u, shot.top + shot.size + 16) : text.top / u
const slotH = H - slotTop - bottom
// The set's horizon sits behind the product's base, so the book stands on the floor plane.
const horizon = Math.min(0.85, Math.max(0.28, (shot ? shot.top + shot.size * 0.78 : H * 0.74) / H))
const rowsOf = (chars: number, size: number, k = 0.52) => Math.max(1, Math.ceil((chars * size * k) / colW))
// Landscape: everything but the price at its landed size; the price takes what is left, up to its full size.
const z = WIDE
const showTerms = !compact && !!terms
const factText = compact ? "" : [factLead, fact].filter(Boolean).join(" ")
const termsAtFact = late(showTerms ? termsAt + 14 : termsAt)
const others = compact ? 0 : (opener ? rowsOf(opener.length, z.note) * z.note * 1.12 + 24 : 0)
+ (free ? 14 + Math.max(z.amount, z.floorShip) * 1.05 : 0)
+ (perDay ? 24 + z.perDay * 1.2 : 0)
+ (showTerms ? 32 + rowsOf(terms.length, z.terms, 0.5) * z.terms * 1.3 : 0)
+ (factText ? (showTerms ? 14 : 28) + rowsOf(factText.length, z.fact, 0.5) * z.fact * 1.32 : 0)
// Copy that shares the column scales together only if the price is already at its smallest; nothing under the floor.
const fit = others ? Math.min(1, Math.max(0, slotH - z.minPrice) / others) : 1
const s = (n: number) => n * u * fit
const t = (n: number) => Math.max(z.floorText * u, s(n))
const g = (n: number) => Math.max(12 * u, s(n))
// Phones: the shipping and breakdown keep their size; the price takes its full size; the headline takes the rest.
const shipH = c && free ? 12 + c.ship * 1.08 : 0
const dayH = c && perDay ? c.gap + rowsOf(breakdown.length, c.perDay) * c.perDay * 1.2 : 0
const headRoom = c && opener ? c.gap : 0
const priceH = c
? Math.max(c.minPrice, Math.min(c.price, slotH - shipH - dayH - (opener ? c.minHead * 1.08 + headRoom : 0)))
: Math.max(z.minPrice, Math.min(z.price, slotH - others * fit))
const headH = c ? Math.max(c.minHead * 1.1, slotH - priceH - shipH - dayH - headRoom) : slotH
const notePx = Math.max(t(z.note), z.floorNote * u)
const amountPx = c ? c.ship * u : Math.max(t(z.amount), z.floorShip * u)
const wordPx = c ? c.ship * u : Math.max(t(z.word), z.floorShip * u)
const dayPx = c ? c.perDay * u : t(z.perDay)
const termsPx = t(z.terms)
const factPx = t(z.fact)
const { sign, figure } = splitPrice(price)
const ship = splitShipping(shipping)
// Both display lines are measured in the theme's own face, in the box they are drawn in.
const openRef = React.useRef<HTMLHeadingElement>(null)
const openSize = useFitText(openRef, opener, c
? { boxW: colW * u, boxH: headH * u, guess: c.head * 0.7 * u, max: c.head * u, min: c.minHead * u, lines: [1, 2] }
: { boxW: colW * u, boxH: slotH * u, guess: 96 * u, max: 120 * u, min: 72 * u, lines: [2, 3] })
const priceRef = React.useRef<HTMLParagraphElement>(null)
const priceSize = useFitText(priceRef, price, {
boxW: colW * u, boxH: priceH * u * 1.1, guess: priceH * 0.9 * u, max: priceH * u, min: Math.min(priceH, 120) * u, lines: [1],
})
const align = side ? "flex-start" : "center"
const textAlign = side ? "left" : "center"
// The anchor (and its old price) is text at full ink on every frame: words wipe up into place and the line wipes
// away as it yields, never faded through dark greys on the set.
const opening = opener ? (
<h2 ref={openRef} style={{
...display(openSize, { lineHeight: 1.04 }), margin: 0, maxWidth: colW * u, color: ink,
...(compact ? {} : {
gridArea: "1 / 1", visibility: exit >= 1 ? ("hidden" as const) : ("visible" as const),
clipPath: exit > 0 ? wipeOut(exit) : undefined, transform: `translateY(${-exit * 48 * u}px)`,
}),
}}>
{typed.flatMap((x, i) => {
const k = springAt(f, x.at, fps, SPRINGS.pop)
const w = <span key={i} style={{ display: "inline-block", clipPath: wipeIn(k * 1.6), transform: `translateY(${(1 - k) * 22 * u}px)` }}>{x.w}</span>
return i ? [" ", w] : [w]
})}
</h2>
) : null
// The price stays in the set's ink: its size carries the emphasis, and the set's light and floor shade sit under it.
const priceLine = (
<p ref={priceRef} style={{
...display(priceSize, { lineHeight: 1 }), margin: 0, display: "inline-flex", alignItems: "flex-start", whiteSpace: "nowrap",
fontVariantNumeric: "tabular-nums", color: ink,
opacity: Math.min(1, land * 3), transform: `scale(${0.86 + 0.14 * land})`, transformOrigin: side ? "0% 85%" : "50% 85%",
}}>
{sign && <span style={{ fontSize: "0.42em", lineHeight: 1, marginTop: "0.12em", marginRight: "0.04em" }}>{sign}</span>}
<span>{figure}</span>
</p>
)
const shipLine = free ? (
<div style={{
marginTop: c ? 12 * u : g(14), display: "flex", alignItems: "baseline", justifyContent: align, flexWrap: "wrap", columnGap: 18 * u, rowGap: 4 * u,
maxWidth: colW * u, opacity: shipK,
transform: side ? `translateX(${(1 - shipK) * -56 * u}px)` : `translateY(${(1 - shipK) * 24 * u}px)`,
}}>
<span style={{ ...display(amountPx, { lineHeight: 1.05 }), color: ink, whiteSpace: "nowrap", fontVariantNumeric: "tabular-nums" }}>{ship.amount}</span>
{ship.rest && <span style={{ fontSize: wordPx, fontWeight: 700, lineHeight: 1.05, color: ink, whiteSpace: "nowrap" }}>{ship.rest}</span>}
</div>
) : null
const dayLine = perDay ? (
<div style={{
marginTop: c ? c.gap * u : g(24), fontSize: dayPx, fontWeight: 700, lineHeight: 1.2, color: ink, textWrap: "balance", maxWidth: colW * u,
opacity: progress(f, countAt - 2, countAt + 6),
}}>
<CountUp value={breakdown} at={countAt} dur={22} />
</div>
) : null
return (
<VideoStage format={format} tone={tone}>
{scene ? (
// The photo keeps its own colour; only the text side is scrimmed to the set's tone for the copy.
<StagePhoto src={scene} frame={f} dur={live} push={[1.02, 1.08]} treatment="natural" tone={tone} side={compact ? "bottom" : "right"} position={focus} />
) : (
<>
{/* One lit set for the product and the copy: light pool, floor plane at the product's base, horizon, falloff, drifting linen. */}
<StageField tone={tone} texture={linen} opacity={tone === "band" ? 0.14 : 0.1} frame={f} horizon={horizon} />
{side && shot && (
<StageLight x={`${(((shot.left + shot.size / 2) / W) * 100).toFixed(1)}%`} strength={tone === "band" ? 0.22 : 0.16}
tone={tone === "band" ? "band-ink" : "accent-fill"} floor />
)}
</>
)}
{shot && <ProductShot src={product} alt={productAlt} frame={f} at={0} size={shot.size * u} left={shot.left * u} top={shot.top * u} />}
{c ? (
<SafeArea inset={{ top: slotTop * u }} style={{ justifyContent: "center", alignItems: "center", textAlign: "center" }}>
{opening}
{price && (
<div style={{ marginTop: opener ? c.gap * u : 0, display: "flex", flexDirection: "column", alignItems: "center" }}>
{priceLine}
{shipLine}
{dayLine}
</div>
)}
</SafeArea>
) : (
<SafeArea inset={{ left: colLeft * u, top: slotTop * u }}>
<div style={{ flex: 1, minHeight: 0, display: "grid", alignItems: "center", justifyItems: side ? "start" : "center", textAlign }}>
{opening}
{price && (
<div style={{ gridArea: "1 / 1", width: "100%", display: "flex", flexDirection: "column", alignItems: align }}>
{opener && (
<p aria-hidden style={{
margin: `0 0 ${g(24)}px`, fontSize: notePx, fontWeight: 600, lineHeight: 1.12, color: ink, textWrap: "balance", maxWidth: colW * u,
visibility: note <= 0 ? "hidden" : "visible", clipPath: wipeIn(note), transform: `translateY(${(1 - note) * 16 * u}px)`,
}}>{opener}</p>
)}
{priceLine}
{shipLine}
{dayLine}
{showTerms && (
<Rise at={termsAt} y={12}>
<div style={{ marginTop: g(32), fontSize: termsPx, fontWeight: 600, lineHeight: 1.3, color: ink, textWrap: "balance", maxWidth: colW * u }}>{terms}</div>
</Rise>
)}
{factText && (
<Rise at={termsAtFact} y={14}>
<p style={{ margin: `${g(showTerms ? 14 : 28)}px 0 0`, fontSize: factPx, fontWeight: 500, lineHeight: 1.32, color: ink, textWrap: "pretty", maxWidth: colW * u }}>
{factLead && <strong style={{ fontWeight: 800 }}>{factLead}</strong>}
{factLead && fact ? " " : ""}
{fact}
</p>
</Rise>
)}
</div>
)}
</div>
</SafeArea>
)}
</VideoStage>
)
}
export default PriceReveal
/** "$47" → sign "$", figure "47" (the sign set superscript); "FREE" stays whole. */
function splitPrice(price: string) {
const p = price.trim()
const m = p.match(/^([^\d\s.,]+)\s?(\d.*)$/)
return m ? { sign: m[1], figure: m[2] } : { sign: "", figure: p }
}
/** "+ $7.95 shipping" → amount "+ $7.95", rest "shipping": one line under the price, the amount in the display face. */
function splitShipping(shipping: string) {
const v = shipping.trim()
const m = v.match(/^(\+?\s*[^\d\s]*\s?[\d.,]+)\s+(.+)$/)
return m ? { amount: m[1], rest: m[2] } : { amount: v, rest: "" }
}
pieces/video/price-reveal/specimen.tsx 34 lines
import __studioImage3fdadb34 from "../assets/039d7d74cca7937e.webp";
import * as React from "react"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat } from "../../fx/video-kit"
import { PriceReveal, video, type PriceRevealProps } from "../price-reveal"
export const states = ["landscape", "vertical"]
/** Opening line typing, opening line set, FREE landed with the shipping in, terms and fact in (landscape), final hold. */
export const keyframes = [18, 44, 84, 112, 145]
// The designed cover; the specimen swaps in the brand's product slot at render time.
const cover = __studioImage3fdadb34
// Fictional sample: Hollis Bakehouse gives away its sourdough cookbook; the reader pays shipping only.
// The cover stands on the lit set (band tone, linen field), so no scene photo is passed.
export const sample: PriceRevealProps = {
variant: "free-plus-shipping",
anchor: "In bookstores, this hardcover is $28.",
anchorShort: "A $28 hardcover.",
price: "FREE",
shipping: "+ $7.95 shipping",
terms: "You only cover shipping",
factLead: "Ships this week.",
fact: "On your counter in 2–3 business days.",
productAlt: "The Sourdough Weekend hardcover cookbook",
product: cover,
}
/** The sample business in its own colours and type (sample-palettes.md: berry · soft-serif); Original and every preset stay one click away. */
export const sampleBrand = { name: "Hollis Bakehouse", theme: "light", background: "#fcf5f8", colors: ["#b0225b", "#2f8f6b"], fonts: ["Fraunces", "DM Sans"] }
export default function PriceRevealSpecimen({ state = "landscape" }: { state?: string }) {
return <VideoPreview component={PriceReveal} props={{ ...sample, product: slot("product", cover) }} format={state as VideoFormat} meta={video} />
}
| Name | Type | Details |
|---|---|---|
format OptionalPriceReveal |
VideoFormat |
Default "landscape"
|
durationInFrames OptionalPriceReveal |
number |
Default video.durationInFrames
|
variant OptionalPriceReveal |
PriceRevealVariant |
Default "just-price"
|
tone OptionalPriceReveal |
"band" | "surface" |
Default "band"
|
anchor OptionalPriceReveal |
string |
Default ""
|
anchorShort OptionalPriceReveal |
string |
Default ""
|
price OptionalPriceReveal |
string |
Default ""
|
shipping OptionalPriceReveal |
string |
Default ""
|
breakdown OptionalPriceReveal |
string |
Default ""
|
terms OptionalPriceReveal |
string |
Default ""
|
factLead OptionalPriceReveal |
string |
Default ""
|
fact OptionalPriceReveal |
string |
Default ""
|
product OptionalPriceReveal |
string |
Default ""
|
productAlt OptionalPriceReveal |
string |
Default ""
|
scene OptionalPriceReveal |
string |
Default ""
|
focus OptionalPriceReveal |
string |
|
priceCue OptionalPriceReveal |
string |
Default ""
|
words OptionalPriceReveal |
Word[] |
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).
-
039d7d74cca7937e.webp
image/webp · 108 KB
-
2c539f422023a290.webp
image/webp · 115 KB