Delayed Offer Reveal 2
Shows a calm keep-watching note while the presentation plays. At the video-relative reveal moment, an angled offer field sweeps in with the receipt, the yes button and the guarantee in one move.
Use it in a prompt
Use offer/delayed-offer-reveal-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details 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/offer/delayed-offer-reveal-2.tsx. - Import it and pass your copy and images (Props tab):
import { DelayedOfferReveal2 } from "@/components/funneldna/offer/delayed-offer-reveal-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/delayed-offer-reveal-2/component.tsx 483 lines
// layout: diagonal-split
// Shows a calm keep-watching note while the presentation plays. At the video-relative reveal moment, an angled offer field sweeps in with the receipt, the yes button and the guarantee in one move.
"use client"
import * as React from "react"
import { AlertCircle, Loader2, LockKeyhole, MonitorPlay, ShieldCheck } from "lucide-react"
export type DelayedOfferReveal2State = "default" | "before" | "hover" | "active" | "disabled" | "error"
export type DelayedOfferReveal2Item = {
name: string
/** Value shown on the receipt line, e.g. "$49". */
value?: string
/** Product thumbnail (item-n slot). */
image?: string
imageAlt?: string
}
export type DelayedOfferReveal2Props = {
/** Force the offer open (true) or closed (false). Leave undefined to open by video time. */
revealed?: boolean
/** The reveal moment, in seconds from the start of the presentation. It is video-relative, never a deadline. */
revealAt?: number
/** Current playback position in seconds. Pass it from your player's time updates. */
currentTime?: number
/** id of an HTML5 <video> element on the page. The block follows its playback. */
videoId?: string
/** Called once, when the offer is first shown. */
onReveal?: () => void
waitingTitle?: string
waitingNote?: string
/** Line under the progress bar; {time} is replaced with the reveal time (mm:ss). */
progressLabel?: string
progressAria?: string
/** Screen-reader announcement when the offer opens. */
availableAnnouncement?: string
headline?: string
/** One-sentence paragraphs under the headline. */
punchLines?: string[]
/** The single-word line that lands the punch. */
punchWord?: string
/** Product composite on a transparent background (product slot). */
productImage?: string
productImageAlt?: string
productName?: string
note?: string
items?: DelayedOfferReveal2Item[]
receiptAria?: string
subtotalLabel?: string
/** Receipt subtotal. If you leave it out, the block adds up the item values. */
regularPrice?: string
discountLabel?: string
totalLabel?: string
price?: string
label?: string
/** Checkout URL. Used as a plain link when no onAction is given. */
href?: string
/** Action handler. While its promise is pending, the button shows loadingText. A rejection shows errorText. */
onAction?: () => void | Promise<void>
loadingText?: string
errorText?: string
reassurance?: string
guarantee?: string
guaranteeNote?: string
/** Guarantee seal on a transparent background (seal-guarantee slot). Falls back to a shield icon. */
sealGuaranteeImage?: string
sealAlt?: string
disabled?: boolean
state?: DelayedOfferReveal2State
className?: string
}
const useIsoLayoutEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect
export function DelayedOfferReveal2({
revealed,
revealAt,
currentTime,
videoId,
onReveal,
waitingTitle = "Keep watching. Your offer opens right here.",
waitingNote = "There’s nothing to do yet. When the presentation gets to it, this space opens on its own.",
progressLabel = "Opens at {time} in the presentation",
progressAria = "Presentation progress",
availableAnnouncement = "The offer is now open below the presentation.",
headline = "Now build the funnel you just watched.",
punchLines = [
"The guide maps your offer and every page you need.",
"The workbook drafts your headline and your call to action.",
"The checklist checks every link and form before you launch.",
],
punchWord = "Done.",
productImage,
productImageAlt = "The Funnel Starter Kit guide, workbook and checklist",
productName = "The Funnel Starter Kit",
note = "One payment · Lifetime access",
items = [],
receiptAria = "What’s in your order",
subtotalLabel = "Subtotal",
regularPrice,
discountLabel = "Bundle discount",
totalLabel = "Your total today",
price = "$47",
label = "Yes! I want the Funnel Starter Kit",
href = "#checkout",
onAction,
loadingText = "Opening secure checkout…",
errorText = "Checkout didn’t open. Please tap the button again.",
reassurance = "Secure checkout · Instant download",
guarantee = "30-day money-back guarantee",
guaranteeNote = "Use the whole kit for 30 days. If it doesn’t help you plan your funnel, ask and you get every cent back.",
sealGuaranteeImage,
sealAlt = "",
disabled = false,
state = "default",
className,
}: DelayedOfferReveal2Props) {
const headingId = React.useId()
const errorId = React.useId()
const [videoTime, setVideoTime] = React.useState<number | undefined>(undefined)
React.useEffect(() => {
setVideoTime(undefined)
if (!videoId) return
const video = document.getElementById(videoId)
if (!(video instanceof HTMLVideoElement)) return
const sync = () => setVideoTime(video.currentTime)
sync()
const events = ["timeupdate", "seeked", "loadedmetadata"] as const
events.forEach((name) => video.addEventListener(name, sync))
return () => events.forEach((name) => video.removeEventListener(name, sync))
}, [videoId])
const threshold = revealAt !== undefined && Number.isFinite(revealAt) ? Math.max(0, revealAt) : undefined
const time = currentTime ?? videoTime
const reached = threshold === undefined || (time !== undefined && Number.isFinite(time) && time >= threshold)
const wants = revealed ?? reached
const [latched, setLatched] = React.useState(wants)
React.useEffect(() => {
if (wants) setLatched(true)
}, [wants])
const shown = state === "before" ? false : revealed ?? (latched || wants)
const prevShown = React.useRef(shown)
const notified = React.useRef(false)
const [entering, setEntering] = React.useState(false)
const [announcement, setAnnouncement] = React.useState("")
useIsoLayoutEffect(() => {
if (shown && !prevShown.current) {
setEntering(true)
setAnnouncement(availableAnnouncement)
}
if (!shown) setEntering(false)
prevShown.current = shown
}, [shown, availableAnnouncement])
React.useEffect(() => {
if (shown && !notified.current) {
notified.current = true
onReveal?.()
}
}, [shown, onReveal])
const [status, setStatus] = React.useState<"idle" | "loading" | "error">(state === "error" ? "error" : "idle")
React.useEffect(() => {
setStatus(state === "error" ? "error" : "idle")
}, [state])
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const busy = React.useRef(false)
const blocked = disabled || state === "disabled"
async function handleAction(event: React.MouseEvent<HTMLElement>) {
if (blocked || busy.current) {
event.preventDefault()
return
}
if (!onAction) return
event.preventDefault()
busy.current = true
setStatus("loading")
try {
await onAction()
if (mounted.current) setStatus("idle")
} catch {
if (mounted.current) setStatus("error")
} finally {
busy.current = false
}
}
const priceValue = parseMoney(price)
const itemValues = items.map((item) => parseMoney(item.value))
const itemSum = items.length > 0 && itemValues.every((value) => value !== undefined)
? itemValues.reduce<number>((total, value) => total + (value ?? 0), 0)
: undefined
const subtotalValue = parseMoney(regularPrice) ?? itemSum
const discountValue = subtotalValue !== undefined && priceValue !== undefined && subtotalValue > priceValue
? subtotalValue - priceValue
: undefined
const subtotalText = regularPrice ?? (subtotalValue !== undefined ? formatMoney(subtotalValue, price) : "")
const progress = threshold !== undefined && threshold > 0 && time !== undefined && Number.isFinite(time)
? Math.min(1, Math.max(0, time / threshold))
: undefined
const btnClass = [
"cf-dor2-btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
status === "loading" ? "is-loading" : "",
].filter(Boolean).join(" ")
const describedBy = status === "error" ? errorId : undefined
const btnInner = status === "loading" ? (
<>
<Loader2 className="cf-dor2-spin" size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{loadingText}</span>
</>
) : (
<span>{label}</span>
)
const action = onAction || blocked || !href ? (
<button
type="button"
className={btnClass}
onClick={handleAction}
disabled={blocked}
aria-busy={status === "loading" || undefined}
aria-describedby={describedBy}
>
{btnInner}
</button>
) : (
<a className={btnClass} href={href} onClick={handleAction} aria-describedby={describedBy}>
{btnInner}
</a>
)
const rootClass = ["cf-dor2", shown ? "is-open" : "is-waiting", entering ? "is-entering" : "", className]
.filter(Boolean)
.join(" ")
return (
<section className={rootClass} aria-labelledby={headingId}>
<style>{CSS}</style>
<p className="cf-dor2-sr" aria-live="polite">{announcement}</p>
{shown ? (
<>
<div className="cf-dor2-grid">
<div className="cf-dor2-copy">
<h2 id={headingId} className="cf-dor2-h2 cf-dor2-rise" style={rise(0)}>{headline}</h2>
{punchLines.length > 0 && (
<div className="cf-dor2-punch cf-dor2-rise" style={rise(1)}>
{punchLines.map((line) => <p key={line}>{line}</p>)}
</div>
)}
{punchWord && <p className="cf-dor2-word cf-dor2-rise" style={rise(2)}>{punchWord}</p>}
{productImage && (
<img
className="cf-dor2-product cf-dor2-rise"
style={rise(3)}
src={productImage}
alt={productImageAlt}
width={800}
height={800}
/>
)}
</div>
<div className="cf-dor2-offer">
<div className="cf-dor2-card">
<h3 className="cf-dor2-name">{productName}</h3>
{note && <p className="cf-dor2-note">{note}</p>}
{items.length > 0 && (
<ul className="cf-dor2-receipt" aria-label={receiptAria}>
{items.map((item) => (
<li key={item.name} className={item.image ? "cf-dor2-row has-thumb" : "cf-dor2-row"}>
{item.image && (
<img className="cf-dor2-thumb" src={item.image} alt={item.imageAlt ?? item.name} width={44} height={44} loading="lazy" />
)}
<span className="cf-dor2-item">{item.name}</span>
{item.value && <span className="cf-dor2-val">{item.value}</span>}
</li>
))}
</ul>
)}
{discountValue !== undefined && (
<div className="cf-dor2-sums">
<p className="cf-dor2-sum">
<span>{subtotalLabel}</span>
<span>{subtotalText}</span>
</p>
<p className="cf-dor2-sum is-discount">
<span>{discountLabel}</span>
<strong>{"\u2212" + formatMoney(discountValue, price)}</strong>
</p>
</div>
)}
<p className="cf-dor2-total">
<span>{totalLabel}</span>
<strong>{price}</strong>
</p>
{action}
{status === "error" && (
<p id={errorId} className="cf-dor2-error" role="alert">
<AlertCircle className="cf-dor2-inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{errorText}
</p>
)}
{reassurance && (
<p className="cf-dor2-reassure">
<LockKeyhole className="cf-dor2-inline" size={16} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
)}
{guarantee && (
<div className="cf-dor2-guarantee">
{sealGuaranteeImage ? (
<img className="cf-dor2-seal" src={sealGuaranteeImage} alt={sealAlt} width={72} height={72} loading="lazy" />
) : (
<span className="cf-dor2-shield" aria-hidden="true"><ShieldCheck size={24} strokeWidth={2.5} /></span>
)}
<div>
<p className="cf-dor2-g-title">{guarantee}</p>
{guaranteeNote && <p className="cf-dor2-g-note">{guaranteeNote}</p>}
</div>
</div>
)}
</div>
</div>
</div>
</>
) : (
<div className="cf-dor2-wait">
<span className="cf-dor2-wait-icon" aria-hidden="true"><MonitorPlay size={24} strokeWidth={2.5} /></span>
<h2 id={headingId} className="cf-dor2-h2">{waitingTitle}</h2>
{waitingNote && <p className="cf-dor2-wait-note">{waitingNote}</p>}
{progress !== undefined && threshold !== undefined && (
<div className="cf-dor2-bar-wrap">
<div
className="cf-dor2-bar"
role="progressbar"
aria-label={progressAria}
aria-valuemin={0}
aria-valuemax={100}
aria-valuenow={Math.round(progress * 100)}
>
<span className="cf-dor2-bar-fill" style={{ transform: `scaleX(${progress})` }} />
</div>
{progressLabel && (
<p className="cf-dor2-bar-label">{progressLabel.replace("{time}", () => clock(threshold))}</p>
)}
</div>
)}
</div>
)}
</section>
)
}
export default DelayedOfferReveal2
function rise(index: number) {
return { "--i": index } as React.CSSProperties
}
function parseMoney(text?: string) {
if (!text || !/[0-9]/.test(text)) return undefined
const amount = Number(text.replace(/[^0-9.]/g, ""))
return Number.isFinite(amount) ? amount : undefined
}
function formatMoney(amount: number, like: string) {
const trimmed = like.trim()
const symbol = trimmed.match(/^[^0-9 .,-]+/)?.[0] ?? ""
const decimals = /[.,][0-9]{2}$/.test(trimmed) || !Number.isInteger(amount) ? 2 : 0
return symbol + amount.toFixed(decimals)
}
function clock(seconds: number) {
const total = Math.max(0, Math.round(seconds))
const hours = Math.floor(total / 3600)
const minutes = Math.floor((total % 3600) / 60)
const secs = String(total % 60).padStart(2, "0")
return hours > 0 ? hours + ":" + String(minutes).padStart(2, "0") + ":" + secs : minutes + ":" + secs
}
const CSS = `
.cf-dor2{--dor2-pad-top:clamp(56px,8vw,112px);--dor2-pad-bottom:clamp(64px,8.5vw,120px);--dor2-gutter:clamp(16px,5vw,48px);--dor2-ease:cubic-bezier(.2,.7,.2,1);--dor2-band-soft:color-mix(in oklch,var(--band-ink) 84%,var(--band));--dor2-shadow:var(--shadow,oklch(0.22 0.03 260));position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);padding:var(--dor2-pad-top) var(--dor2-gutter) var(--dor2-pad-bottom)}
.cf-dor2 *,.cf-dor2 *::before,.cf-dor2 *::after{box-sizing:border-box}
.cf-dor2 :where(h2,h3,p,ul){margin:0}
.cf-dor2-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.cf-dor2-inline{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em}
.cf-dor2-h2{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-dor2-wait{position:relative;z-index:1;max-width:46rem;margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-dor2-wait-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .12);color:var(--band-ink);margin-bottom:24px}
.cf-dor2-wait-note{margin-top:16px;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--dor2-band-soft);text-wrap:pretty}
.cf-dor2-bar-wrap{width:min(100%,28rem);margin-top:32px}
.cf-dor2-bar{height:8px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .18);overflow:hidden}
.cf-dor2-bar-fill{display:block;height:100%;border-radius:inherit;background:var(--band-ink);transform-origin:left center;transition:transform .3s linear}
.cf-dor2-bar-label{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--dor2-band-soft);font-variant-numeric:tabular-nums}
.cf-dor2-grid{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,30rem);gap:clamp(48px,5vw,72px);align-items:start}
.cf-dor2-copy{position:relative;z-index:1;min-width:0;padding-top:8px}
.cf-dor2-punch{margin-top:24px;display:grid;gap:12px}
.cf-dor2-punch p{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--dor2-band-soft);text-wrap:pretty}
.cf-dor2-word{margin-top:16px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;color:var(--band-ink)}
.cf-dor2-product{display:block;width:min(100%,400px);height:auto;margin-top:32px;filter:drop-shadow(0 2px 3px oklch(from var(--dor2-shadow) l c h / .35)) drop-shadow(0 14px 18px oklch(from var(--dor2-shadow) l c h / .3))}
.cf-dor2-offer{position:relative;isolation:isolate;z-index:0;align-self:stretch;min-width:0}
.cf-dor2-offer::before,.cf-dor2-offer::after{content:"";position:absolute;z-index:-1;top:calc(-1 * var(--dor2-pad-top));bottom:calc(-1 * var(--dor2-pad-bottom));left:-48px;right:-100vw;pointer-events:none}
.cf-dor2-offer::before{background:var(--surface);clip-path:polygon(188px 0,100% 0,100% 100%,14px 100%)}
.cf-dor2-offer::after{background:var(--accent-fill,var(--accent));clip-path:polygon(174px 0,188px 0,14px 100%,0 100%)}
.cf-dor2-card{position:relative;background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklch,var(--accent) 26%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--dor2-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--dor2-shadow) l c h / .32)));padding:clamp(20px,3vw,32px)}
.cf-dor2-name{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}
.cf-dor2-note{margin-top:8px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-dor2-receipt{list-style:none;padding:0;margin:20px 0 0}
.cf-dor2-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid oklch(from var(--ink) l c h / .1)}
.cf-dor2-row.has-thumb{grid-template-columns:44px minmax(0,1fr) auto}
.cf-dor2-thumb{display:block;width:44px;height:44px;border-radius:8px;object-fit:cover;object-position:center;background:color-mix(in oklch,var(--ink) 4%,var(--card));outline:1px solid oklch(from var(--ink) l c h / .08);outline-offset:-1px}
.cf-dor2-item,.cf-dor2-val{font-size:1.0625rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-dor2-item{color:var(--ink)}
.cf-dor2-val{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.cf-dor2-row.has-thumb .cf-dor2-item,.cf-dor2-row.has-thumb .cf-dor2-val{padding-top:10px}
.cf-dor2-sums{margin-top:12px;display:grid;gap:4px}
.cf-dor2-sum{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-dor2-sum.is-discount{color:var(--success)}
.cf-dor2-sum.is-discount strong{font-weight:800}
.cf-dor2-total{margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 5%,var(--card));color:var(--ink)}
.cf-dor2-total span{font-size:1.0625rem;line-height:1.3;font-weight:800}
.cf-dor2-total strong{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.cf-dor2-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;margin-top:20px;padding:12px 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--dor2-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--dor2-shadow) l c h / .42));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-dor2-btn:hover:not(:disabled),.cf-dor2-btn.is-hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));transform:translateY(-1px);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .18) c h),0 1px 2px oklch(from var(--dor2-shadow) l c h / .32),0 12px 20px -6px oklch(from var(--dor2-shadow) l c h / .48))}
.cf-dor2-btn:active:not(:disabled),.cf-dor2-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--dor2-shadow) l c h / .3)}
.cf-dor2-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .6);outline-offset:3px}
.cf-dor2-btn:disabled{cursor:not-allowed;background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));transform:none}
.cf-dor2-btn.is-loading{cursor:progress}
.cf-dor2-spin{flex:none;animation:cf-dor2-spin .8s linear infinite}
@keyframes cf-dor2-spin{to{transform:rotate(360deg)}}
.cf-dor2-error{margin-top:12px;padding:12px 16px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-dor2-reassure{margin-top:12px;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-dor2-guarantee{margin-top:24px;display:flex;align-items:center;gap:16px}
.cf-dor2-seal{flex:none;display:block;width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--dor2-shadow) l c h / .3)) drop-shadow(0 8px 10px oklch(from var(--dor2-shadow) l c h / .18))}
.cf-dor2-shield{flex:none;display:grid;place-items:center;width:48px;height:48px;color:var(--accent)}
.cf-dor2-g-title{font-size:1.0625rem;line-height:1.3;font-weight:800;color:var(--ink)}
.cf-dor2-g-note{margin-top:4px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-dor2.is-entering .cf-dor2-offer::before{animation:cf-dor2-sweep .62s var(--dor2-ease) both}
.cf-dor2.is-entering .cf-dor2-offer::after{animation:cf-dor2-sweep .62s var(--dor2-ease) .04s both}
.cf-dor2.is-entering .cf-dor2-card{animation:cf-dor2-slide .62s var(--dor2-ease) .08s both}
.cf-dor2.is-entering .cf-dor2-rise{animation:cf-dor2-rise .45s var(--dor2-ease) both;animation-delay:calc(var(--i,0) * .07s)}
@keyframes cf-dor2-sweep{from{transform:translateX(70vw)}}
@keyframes cf-dor2-slide{from{opacity:.82;transform:translateX(72px)}}
@keyframes cf-dor2-rise{from{opacity:.82;transform:translateY(8px)}}
@media (max-width:959px){
.cf-dor2-grid{grid-template-columns:minmax(0,1fr);gap:32px}
.cf-dor2-copy{padding-top:0}
.cf-dor2-product{width:min(100%,300px)}
.cf-dor2-offer::before,.cf-dor2-offer::after{left:calc(-1 * var(--dor2-gutter));right:calc(-1 * var(--dor2-gutter))}
.cf-dor2-offer::before{top:-20px;bottom:calc(-1 * var(--dor2-pad-bottom));clip-path:polygon(0 64px,100% 0,100% 100%,0 100%)}
.cf-dor2-offer::after{top:-32px;bottom:auto;height:80px;clip-path:polygon(0 64px,100% 0,100% 12px,0 76px)}
.cf-dor2.is-entering .cf-dor2-offer::before{animation:cf-dor2-sweep-m .62s var(--dor2-ease) both}
.cf-dor2.is-entering .cf-dor2-offer::after{animation:cf-dor2-seam-m .62s var(--dor2-ease) .04s both}
.cf-dor2.is-entering .cf-dor2-card{animation-name:cf-dor2-slide-m}
@keyframes cf-dor2-sweep-m{from{clip-path:polygon(100% 64px,100% 0,100% 100%,100% 100%)}}
@keyframes cf-dor2-seam-m{from{clip-path:polygon(100% 64px,100% 0,100% 12px,100% 76px)}}
@keyframes cf-dor2-slide-m{from{opacity:.82;transform:translateY(40px)}}
}
@media (max-width:420px){
.cf-dor2-total{padding:14px 16px}
.cf-dor2-btn{padding:12px 20px}
.cf-dor2-guarantee{align-items:flex-start;gap:12px}
.cf-dor2-seal{width:56px;height:56px}
}
@media (prefers-reduced-motion:reduce){
.cf-dor2.is-entering .cf-dor2-card,.cf-dor2.is-entering .cf-dor2-rise,.cf-dor2.is-entering .cf-dor2-offer::before,.cf-dor2.is-entering .cf-dor2-offer::after{animation:none}
.cf-dor2-btn,.cf-dor2-bar-fill{transition:none}
.cf-dor2-btn:hover:not(:disabled),.cf-dor2-btn.is-hover,.cf-dor2-btn:active:not(:disabled),.cf-dor2-btn.is-active{transform:none}
.cf-dor2-spin{animation:none}
}
`
pieces/offer/delayed-offer-reveal-2/specimen.tsx 27 lines
import __studioImage102832c6 from "../assets/fcaf5edd1e5adff8.webp";
import __studioImage6a26a83e from "../assets/4e0e2210ebe5acbe.webp";
import * as React from "react"
import { DelayedOfferReveal2, type DelayedOfferReveal2State } from "../delayed-offer-reveal-2"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
export const states = ["default", "before", "hover", "active", "disabled", "error"]
export default function DelayedOfferReveal2Specimen({ state = "default" }: { state?: DelayedOfferReveal2State }) {
const sample = defaults.sample
return (
<DelayedOfferReveal2
state={state}
revealAt={2280}
currentTime={state === "before" ? 1638 : 2286}
productName={sample.name}
note={sample.note}
items={sample.items.map((item) => ({ name: item.name, value: item.value, image: item.image, imageAlt: item.imageAlt }))}
regularPrice={sample.regularPrice}
price={sample.price}
guarantee={sample.guarantee}
productImage={slot("product", __studioImage102832c6)}
sealGuaranteeImage={slot("seal-guarantee", __studioImage6a26a83e)}
/>
)
}
| Name | Type | Details |
|---|---|---|
revealed OptionalDelayedOfferReveal2 |
boolean |
|
revealAt OptionalDelayedOfferReveal2 |
number |
|
currentTime OptionalDelayedOfferReveal2 |
number |
|
videoId OptionalDelayedOfferReveal2 |
string |
|
onReveal OptionalDelayedOfferReveal2 |
() => void |
|
waitingTitle OptionalDelayedOfferReveal2 |
string |
Default "Keep watching. Your offer opens right here."
|
waitingNote OptionalDelayedOfferReveal2 |
string |
Default "There’s nothing to do yet. When the presentation gets to it, this space opens on its own."
|
progressLabel OptionalDelayedOfferReveal2 |
string |
Default "Opens at {time} in the presentation"
|
progressAria OptionalDelayedOfferReveal2 |
string |
Default "Presentation progress"
|
availableAnnouncement OptionalDelayedOfferReveal2 |
string |
Default "The offer is now open below the presentation."
|
headline OptionalDelayedOfferReveal2 |
string |
Default "Now build the funnel you just watched."
|
punchLines OptionalDelayedOfferReveal2 |
string[] |
Default [
"The guide maps your offer and every page you need.",
"The workbook drafts your headline and your call to action.",
"The checklist checks every link and form before you launch.",
]
|
punchWord OptionalDelayedOfferReveal2 |
string |
Default "Done."
|
productImage OptionalDelayedOfferReveal2 |
string |
|
productImageAlt OptionalDelayedOfferReveal2 |
string |
Default "The Funnel Starter Kit guide, workbook and checklist"
|
productName OptionalDelayedOfferReveal2 |
string |
Default "The Funnel Starter Kit"
|
note OptionalDelayedOfferReveal2 |
string |
Default "One payment · Lifetime access"
|
items OptionalDelayedOfferReveal2 |
DelayedOfferReveal2Item[] |
Default []
|
receiptAria OptionalDelayedOfferReveal2 |
string |
Default "What’s in your order"
|
subtotalLabel OptionalDelayedOfferReveal2 |
string |
Default "Subtotal"
|
regularPrice OptionalDelayedOfferReveal2 |
string |
|
discountLabel OptionalDelayedOfferReveal2 |
string |
Default "Bundle discount"
|
totalLabel OptionalDelayedOfferReveal2 |
string |
Default "Your total today"
|
price OptionalDelayedOfferReveal2 |
string |
Default "$47"
|
label OptionalDelayedOfferReveal2 |
string |
Default "Yes! I want the Funnel Starter Kit"
|
href OptionalDelayedOfferReveal2 |
string |
Default "#checkout"
|
onAction OptionalDelayedOfferReveal2 |
() => void | Promise<void> |
|
loadingText OptionalDelayedOfferReveal2 |
string |
Default "Opening secure checkout…"
|
errorText OptionalDelayedOfferReveal2 |
string |
Default "Checkout didn’t open. Please tap the button again."
|
reassurance OptionalDelayedOfferReveal2 |
string |
Default "Secure checkout · Instant download"
|
guarantee OptionalDelayedOfferReveal2 |
string |
Default "30-day money-back guarantee"
|
guaranteeNote OptionalDelayedOfferReveal2 |
string |
Default "Use the whole kit for 30 days. If it doesn’t help you plan your funnel, ask and you get every cent back."
|
sealGuaranteeImage OptionalDelayedOfferReveal2 |
string |
|
sealAlt OptionalDelayedOfferReveal2 |
string |
Default ""
|
disabled OptionalDelayedOfferReveal2 |
boolean |
Default false
|
state OptionalDelayedOfferReveal2 |
DelayedOfferReveal2State |
Default "default"
|
className OptionalDelayedOfferReveal2 |
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.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
seal-guarantee- The money-back guarantee seal, on a transparent background.
-
4e0e2210ebe5acbe.webp
image/webp · 331 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
fcaf5edd1e5adff8.webp
image/webp · 197 KB