Countdown Reel Hero 1
Countdown Reel Hero: an old film-leader 3, 2, 1 rolls inside a clean screen frame and hands off to the outcome
Use it in a prompt
Use attention/countdown-reel-hero 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/attention/countdown-reel-hero.tsx. - Import it and pass your copy and images (Props tab):
import { CountdownReelHero } from "@/components/funneldna/attention/countdown-reel-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/attention/countdown-reel-hero/component.tsx 443 lines
// layout: photo-overlap-card
// Countdown Reel Hero: an old film-leader 3, 2, 1 rolls inside a clean screen frame and hands off to the outcome
// scene (or the page's own real video) while the offer card breaks the frame with a priced, first-person Yes button that works from the first frame.
// Theme notes: every colour is a token or an OKLCH recipe on a token. The film leader is derived from --band so it
// follows the theme's hue. Documented exception: the --marker fallback (#fae37c, the contract's yellow marker default).
// The ticker's edge-fade mask uses an opaque token (--band-ink) only as its alpha channel; masks never paint colour.
import * as React from 'react'
import { Pause, Play, RotateCcw, ShieldCheck } from 'lucide-react'
export type CountdownReelHeroItem = {
name: string
// thumbnail image (slot item-n)
image?: string
imageAlt?: string
}
export type CountdownReelHeroCopy = {
pauseMotion?: string
replayIntro?: string
reelLabel?: string
stepsLabel?: string
tickerLabel?: string
}
export type CountdownReelHeroProps = {
headline?: React.ReactNode
// phrase inside a text headline that gets the marker stroke
highlight?: string
headingLevel?: 'h1' | 'h2'
lead?: React.ReactNode
productName?: string
// kit items; those with an image show as the fanned thumbnails
items?: CountdownReelHeroItem[]
// one-sentence lines, numbered as a countdown (3, 2, 1)
steps?: string[]
// the single-word line after the countdown
punch?: string
label?: string
// shown on the button's second line
price?: string
priceNote?: string
reassurance?: string
// words that scroll along the top of the frame
ticker?: string[]
// slot: scene
sceneImage?: string
sceneAlt?: string
// a real video embed supplied by the page; it shows once the leader has rolled
video?: React.ReactNode
// play the 3, 2, 1 leader on mount (always skipped with reduced motion)
playIntro?: boolean
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
copy?: CountdownReelHeroCopy
className?: string
}
const STEP_MS = 900
export function CountdownReelHero(props: CountdownReelHeroProps) {
const {
headline = 'Build your first funnel with a clear plan',
highlight = 'a clear plan',
headingLevel = 'h1',
lead = 'Plan your funnel, write your page copy, and check every step before you launch.',
productName = 'The Funnel Starter Kit',
items = DEFAULT_ITEMS,
steps = DEFAULT_STEPS,
punch = 'Launch.',
label = 'Yes! I want The Funnel Starter Kit',
price = '$47',
priceNote = 'One payment · Lifetime access',
reassurance = 'Secure checkout · Instant download · 30-day money-back guarantee',
ticker = DEFAULT_TICKER,
sceneImage,
sceneAlt = 'A founder planning a first funnel beside a laptop, guide and checklist',
video,
playIntro = true,
href,
onAction,
disabled = false,
state = 'default',
className,
} = props
const copy = { ...DEFAULT_COPY, ...props.copy }
const grainId = 'crh-grain-' + React.useId().replace(/[^a-zA-Z0-9_-]/g, '')
const hasMedia = Boolean(video || sceneImage)
const [run, setRun] = React.useState(0)
const [phase, setPhase] = React.useState<'leader' | 'rolled'>(playIntro ? 'leader' : 'rolled')
const [count, setCount] = React.useState(3)
const [paused, setPaused] = React.useState(false)
const timers = React.useRef<number[]>([])
const clearTimers = React.useCallback(() => {
timers.current.forEach((t) => window.clearTimeout(t))
timers.current = []
}, [])
React.useEffect(() => {
clearTimers()
const reduce = typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches
if (!playIntro || reduce) {
setPhase('rolled')
return undefined
}
setCount(3)
setPhase('leader')
timers.current = [
window.setTimeout(() => setCount(2), STEP_MS),
window.setTimeout(() => setCount(1), STEP_MS * 2),
window.setTimeout(() => setPhase('rolled'), STEP_MS * 3),
]
return clearTimers
}, [run, playIntro, clearTimers])
const togglePause = () => {
if (!paused) {
clearTimers()
setPhase('rolled')
}
setPaused(!paused)
}
const replay = () => {
setPaused(false)
setRun((r) => r + 1)
}
const leaderOn = phase === 'leader' || !hasMedia
const isStatic = phase === 'rolled' && !hasMedia
const live = phase === 'leader' && !paused ? count : 0
const thumbs = items.filter((item) => item.image).slice(0, 3)
const isDisabled = disabled || state === 'disabled'
const Heading = headingLevel
const NameHeading = headingLevel === 'h1' ? 'h2' : 'h3'
const tickerStyle = { '--crh-ticker-dur': Math.max(20, Math.round(ticker.join(' ').length * 0.4)) + 's' } as React.CSSProperties
const ctaClass = 'crh-cta' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const ctaInner = (
<>
<span className='crh-cta-main'>{label}</span>
{price || priceNote ? (
<span className='crh-cta-sub'>
{price ? <b className='crh-cta-price'>{price}</b> : null}
{price && priceNote ? <span>{' · '}</span> : null}
{priceNote}
</span>
) : null}
</>
)
return (
<div className={['cf-countdown-reel-hero', paused ? 'is-paused' : '', className ?? ''].filter(Boolean).join(' ')}>
<style>{CSS}</style>
<header className='crh-head'>
<Heading className='crh-title'>{markPhrase(headline, highlight)}</Heading>
{lead ? <p className='crh-lead'>{lead}</p> : null}
</header>
<div className='crh-stage'>
<figure className='crh-reel' aria-label={copy.reelLabel}>
<div className='crh-track'>
<div className='crh-ctrls'>
<button type='button' className='crh-ctrl crh-motion-ctrl' aria-label={copy.pauseMotion} aria-pressed={paused} title={copy.pauseMotion} onClick={togglePause}>
{paused ? <Play aria-hidden='true' strokeWidth={2.4} /> : <Pause aria-hidden='true' strokeWidth={2.4} />}
</button>
<button type='button' className='crh-ctrl crh-motion-ctrl' aria-label={copy.replayIntro} title={copy.replayIntro} onClick={replay}>
<RotateCcw aria-hidden='true' strokeWidth={2.4} />
</button>
</div>
<div className='crh-ticker' style={tickerStyle}>
<div className='crh-ticker-run'>
{[0, 1].map((set) => (
<ul key={set} className='crh-ticker-set' aria-label={set === 0 ? copy.tickerLabel : undefined} aria-hidden={set === 1 ? true : undefined}>
{ticker.map((word, i) => (
<li key={i}>{word}</li>
))}
</ul>
))}
</div>
</div>
</div>
<div className={'crh-screen' + (video ? ' has-video' : '')}>
{video ? (
<div className='crh-video'>{video}</div>
) : sceneImage ? (
<img className='crh-scene' src={sceneImage} alt={sceneAlt} width={1536} height={864} loading='eager' decoding='async' />
) : null}
<div className={'crh-leader' + (leaderOn ? '' : ' is-out') + (isStatic ? ' is-static' : '')} aria-hidden='true'>
<div className='crh-field' />
{isStatic ? null : <div className='crh-sweep' key={'s' + run + '-' + count} />}
<span className='crh-cross crh-cross-h' />
<span className='crh-cross crh-cross-v' />
<span className='crh-ring crh-ring-o' />
<span className='crh-ring crh-ring-i' />
<span className='crh-num' key={'n' + run + '-' + count}>{isStatic ? 1 : count}</span>
<svg className='crh-grain' focusable='false'>
<filter id={grainId}>
<feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves={2} stitchTiles='stitch' />
<feColorMatrix type='saturate' values='0' />
</filter>
<rect width='100%' height='100%' filter={'url(#' + grainId + ')'} />
</svg>
<span className='crh-scratch crh-s1' />
<span className='crh-scratch crh-s2' />
<span className='crh-scratch crh-s3' />
<span className='crh-dust crh-d1' />
<span className='crh-dust crh-d2' />
<span className='crh-dust crh-d3' />
</div>
</div>
</figure>
<div className='crh-card'>
<div className='crh-kit'>
{thumbs.length ? (
<div className='crh-thumbs'>
{thumbs.map((item, i) => (
<img key={i} src={item.image} alt={item.imageAlt ?? item.name} width={120} height={120} loading='eager' decoding='async' />
))}
</div>
) : null}
<NameHeading className='crh-name'>{productName}</NameHeading>
</div>
{steps.length ? (
<ol className='crh-steps' reversed aria-label={copy.stepsLabel}>
{steps.map((line, i) => {
const n = steps.length - i
return (
<li key={i} className={n === live ? 'is-live' : undefined}>
<span className='crh-roundel' aria-hidden='true'>{n}</span>
<p>{line}</p>
</li>
)
})}
</ol>
) : null}
{punch ? <p className='crh-punch'>{punch}</p> : null}
{href && !isDisabled ? (
<a className={ctaClass} href={href} onClick={onAction}>
{ctaInner}
</a>
) : (
<button type='button' className={ctaClass} disabled={isDisabled} onClick={onAction}>
{ctaInner}
</button>
)}
{reassurance ? (
<p className='crh-assure'>
<ShieldCheck aria-hidden='true' strokeWidth={2.4} /><span>{reassurance}</span>
</p>
) : null}
</div>
</div>
</div>
)
}
export default CountdownReelHero
function markPhrase(node: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof node !== 'string' || !phrase) return node
const at = node.indexOf(phrase)
if (at < 0) return node
return (
<>
{node.slice(0, at)}
<span className='crh-mark'>{phrase}</span>
{node.slice(at + phrase.length)}
</>
)
}
const DEFAULT_ITEMS: CountdownReelHeroItem[] = [
{ name: 'Funnel Planning Guide' },
{ name: 'Page Copy Workbook' },
{ name: 'Launch Checklist' },
]
const DEFAULT_STEPS = [
'Map your offer and the pages your funnel needs.',
'Draft your headline, offer, and call to action.',
'Review the links, forms, and next steps before launch.',
]
const DEFAULT_TICKER = ['Funnel Planning Guide', 'Page Copy Workbook', 'Launch Checklist', 'Instant digital access', '30-day money-back guarantee']
const DEFAULT_COPY: Required<CountdownReelHeroCopy> = {
pauseMotion: 'Pause motion',
replayIntro: 'Replay the countdown',
reelLabel: 'Preview reel',
stepsLabel: 'Your countdown to launch',
tickerLabel: 'Inside the kit',
}
const CSS = `
@property --crh-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.cf-countdown-reel-hero {
--crh-track: 56px;
--crh-r: var(--card-radius, var(--radius, 16px));
--crh-overlap: clamp(48px, 5.5vw, 84px);
--crh-play: running;
--crh-shade: var(--shadow, oklch(0.22 0.03 260));
--crh-marker: oklch(from var(--marker, #fae37c) l c h / 0.8);
position: relative;
width: 100%;
max-width: 1240px;
margin-inline: auto;
color: var(--ink);
font-family: var(--font-body);
}
.cf-countdown-reel-hero, .cf-countdown-reel-hero *, .cf-countdown-reel-hero *::before, .cf-countdown-reel-hero *::after { box-sizing: border-box; }
.cf-countdown-reel-hero.is-paused { --crh-play: paused; }
.cf-countdown-reel-hero .crh-head { margin: 0 0 clamp(28px, 4vw, 52px); text-align: center; }
.cf-countdown-reel-hero .crh-title { margin: 0 0 clamp(28px, 2.6vw + 8px, 48px); color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight, 900); font-size: clamp(2.25rem, 6.2vw + 0.4rem, 5.5rem); line-height: 1.02; letter-spacing: var(--display-tracking, -0.035em); text-transform: var(--display-case, none); text-wrap: balance; }
.cf-countdown-reel-hero .crh-mark { margin: 0 -0.04em; padding: 0 0.08em; border-radius: 0.18em 0.5em 0.3em 0.45em / 0.4em 0.3em 0.5em 0.35em; background-image: linear-gradient(var(--crh-marker), var(--crh-marker)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 54%; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: crh-mark 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both; }
.cf-countdown-reel-hero .crh-lead { max-width: 60ch; margin: 0 auto; color: var(--ink); font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.3125rem); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.cf-countdown-reel-hero .crh-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 432px); align-items: start; }
.cf-countdown-reel-hero .crh-reel { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--crh-r); background: var(--band); color: var(--band-ink); box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--crh-shade) l c h / 0.22), 0 12px 24px -8px oklch(from var(--crh-shade) l c h / 0.32)); animation: crh-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cf-countdown-reel-hero .crh-track { display: flex; align-items: center; gap: 10px; min-height: var(--crh-track); padding: 6px 12px 6px 8px; border-bottom: 1px solid oklch(from var(--band-ink) l c h / 0.1); background: var(--band); color: var(--band-ink); }
.cf-countdown-reel-hero .crh-ctrls { display: flex; flex: none; gap: 4px; }
.cf-countdown-reel-hero .crh-ctrl { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: oklch(from var(--band-ink) l c h / 0.1); color: var(--band-ink); font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); cursor: pointer; transition: background-color 0.15s ease; }
.cf-countdown-reel-hero .crh-ctrl:hover { background: oklch(from var(--band-ink) l c h / 0.2); }
.cf-countdown-reel-hero .crh-ctrl:active { background: oklch(from var(--band-ink) l c h / 0.28); }
.cf-countdown-reel-hero .crh-ctrl[aria-pressed='true'] { background: oklch(from var(--band-ink) l c h / 0.22); }
.cf-countdown-reel-hero .crh-ctrl:focus-visible { outline: 2px solid var(--band-ink); outline-offset: 2px; }
.cf-countdown-reel-hero .crh-ctrl svg { width: 18px; height: 18px; }
/* Edge-fade mask: the opaque --band-ink stop is read only as alpha by the mask, it paints nothing. */
.cf-countdown-reel-hero .crh-ticker { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--band-ink) 7%, var(--band-ink) 93%, transparent); mask-image: linear-gradient(90deg, transparent, var(--band-ink) 7%, var(--band-ink) 93%, transparent); }
.cf-countdown-reel-hero .crh-ticker-run { display: flex; width: max-content; animation: crh-tick var(--crh-ticker-dur, 28s) linear infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-track:hover .crh-ticker-run, .cf-countdown-reel-hero .crh-track:focus-within .crh-ticker-run { animation-play-state: paused; }
.cf-countdown-reel-hero .crh-ticker-set { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }
.cf-countdown-reel-hero .crh-ticker-set li { display: inline-flex; align-items: center; gap: 14px; padding-right: 14px; color: var(--band-ink); font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; white-space: nowrap; }
.cf-countdown-reel-hero .crh-ticker-set li::before { content: ''; flex: none; width: 8px; height: 10px; border-radius: 2px; background: oklch(from var(--band-ink) l c h / 0.4); }
.cf-countdown-reel-hero .crh-screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: oklch(from var(--band) calc(l - 0.03) c h); }
.cf-countdown-reel-hero .crh-screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px oklch(from var(--band-ink) l c h / 0.08), inset 0 0 48px oklch(from var(--crh-shade) l c h / 0.4); }
.cf-countdown-reel-hero .crh-screen.has-video::after { display: none; }
.cf-countdown-reel-hero .crh-scene { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 60% 45%; animation: crh-drift 26s ease-in-out infinite alternate; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-video { position: absolute; inset: 0; z-index: 0; }
.cf-countdown-reel-hero .crh-video > * { display: block; width: 100%; height: 100%; border: 0; }
.cf-countdown-reel-hero .crh-leader { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: oklch(from var(--band) 0.5 calc(c * 0.6) h); animation: crh-flicker 0.2s steps(1, end) infinite; animation-play-state: var(--crh-play); transition: opacity 0.55s ease, visibility 0s linear 0s; }
.cf-countdown-reel-hero .crh-leader.is-out { opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0s linear 0.55s; }
.cf-countdown-reel-hero .crh-field { position: absolute; inset: -2%; background: radial-gradient(circle at 50% 50%, oklch(from var(--band) 0.84 calc(c * 0.45) h) 0%, oklch(from var(--band) 0.7 calc(c * 0.55) h) 42%, oklch(from var(--band) 0.42 calc(c * 0.6) h) 100%); animation: crh-weave 0.36s steps(1, end) infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-sweep { position: absolute; inset: -30%; background: conic-gradient(from 0deg at 50% 50%, oklch(from var(--band) 0.95 calc(c * 0.25) h / 0.45) 0deg var(--crh-sweep), oklch(from var(--band) 0.2 c h / 0.6) var(--crh-sweep) calc(var(--crh-sweep) + 0.8deg), transparent calc(var(--crh-sweep) + 0.8deg)); animation: crh-sweep 0.9s linear both; }
.cf-countdown-reel-hero .crh-cross { position: absolute; background: oklch(from var(--band) 0.2 c h / 0.55); }
.cf-countdown-reel-hero .crh-cross-h { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.cf-countdown-reel-hero .crh-cross-v { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.cf-countdown-reel-hero .crh-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.cf-countdown-reel-hero .crh-ring-o { width: 50cqw; border: 0.55cqw solid oklch(from var(--band) 0.97 calc(c * 0.2) h / 0.92); }
.cf-countdown-reel-hero .crh-ring-i { width: 41cqw; border: 0.3cqw solid oklch(from var(--band) 0.97 calc(c * 0.2) h / 0.8); }
.cf-countdown-reel-hero .crh-num { position: absolute; inset: 0; display: grid; place-items: center; color: oklch(from var(--band) 0.2 calc(c * 0.8) h); font-family: var(--font-display); font-weight: var(--display-weight, 900); font-size: 34cqw; line-height: 1; font-variant-numeric: tabular-nums; animation: crh-num 0.9s ease-out both; }
.cf-countdown-reel-hero .crh-leader.is-static .crh-num { animation: none; }
.cf-countdown-reel-hero .crh-grain { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; opacity: 0.22; mix-blend-mode: overlay; animation: crh-grain 0.5s steps(1, end) infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-scratch { position: absolute; top: -4%; bottom: -4%; width: 2px; background: oklch(from var(--band) 0.97 0.01 h / 0.6); animation: crh-scratch 0.45s steps(1, end) infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-s1 { left: 23%; }
.cf-countdown-reel-hero .crh-s2 { left: 61%; width: 1px; animation-duration: 0.6s; animation-delay: -0.2s; }
.cf-countdown-reel-hero .crh-s3 { left: 79%; animation-duration: 0.38s; animation-delay: -0.1s; }
.cf-countdown-reel-hero .crh-dust { position: absolute; width: 0.9cqw; height: 0.7cqw; border-radius: 50%; background: oklch(from var(--band) 0.18 c h / 0.7); opacity: 0; animation: crh-dust 0.7s steps(1, end) infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-d1 { top: 22%; left: 36%; }
.cf-countdown-reel-hero .crh-d2 { top: 68%; left: 70%; animation-delay: -0.25s; }
.cf-countdown-reel-hero .crh-d3 { top: 40%; left: 14%; width: 0.5cqw; animation-delay: -0.45s; }
.cf-countdown-reel-hero .crh-card { position: relative; z-index: 2; min-width: 0; margin: calc(var(--crh-track) + 20px) 0 0 calc(var(--crh-overlap) * -1); padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--card-border, color-mix(in oklch, var(--ink) 12%, transparent)); border-radius: var(--crh-r); background: var(--card); color: var(--ink); box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--crh-shade) l c h / 0.22), 0 12px 24px -8px oklch(from var(--crh-shade) l c h / 0.32))); }
.cf-countdown-reel-hero .crh-kit { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cf-countdown-reel-hero .crh-thumbs { display: flex; flex: none; padding: 4px 6px 4px 2px; }
.cf-countdown-reel-hero .crh-thumbs img { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 10px; filter: drop-shadow(0 1px 1.5px oklch(from var(--crh-shade) l c h / 0.35)) drop-shadow(0 5px 6px oklch(from var(--crh-shade) l c h / 0.2)); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cf-countdown-reel-hero .crh-thumbs img + img { margin-left: -20px; }
.cf-countdown-reel-hero .crh-thumbs img:nth-child(1) { transform: rotate(-7deg); }
.cf-countdown-reel-hero .crh-thumbs img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-3px); }
.cf-countdown-reel-hero .crh-thumbs img:nth-child(3) { transform: rotate(7deg); }
.cf-countdown-reel-hero .crh-kit:hover .crh-thumbs img:nth-child(1) { transform: rotate(-11deg) translateX(-4px); }
.cf-countdown-reel-hero .crh-kit:hover .crh-thumbs img:nth-child(2) { transform: translateY(-6px); }
.cf-countdown-reel-hero .crh-kit:hover .crh-thumbs img:nth-child(3) { transform: rotate(11deg) translateX(4px); }
.cf-countdown-reel-hero .crh-name { min-width: 0; margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(1.375rem, 1rem + 0.9vw, 1.75rem); line-height: 1.1; letter-spacing: var(--display-tracking, -0.02em); text-transform: var(--display-case, none); text-wrap: balance; }
.cf-countdown-reel-hero .crh-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cf-countdown-reel-hero .crh-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 -10px; padding: 8px 10px; border-radius: calc(var(--crh-r) * 0.7); transition: background-color 0.3s ease; }
.cf-countdown-reel-hero .crh-steps li.is-live { background: color-mix(in oklch, var(--accent) 12%, var(--card)); }
.cf-countdown-reel-hero .crh-steps p { margin: 0; padding-top: 6px; color: var(--ink); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.cf-countdown-reel-hero .crh-roundel { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in oklch, var(--ink) 5%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--ink) 16%, transparent); color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.cf-countdown-reel-hero .crh-roundel::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 12%, transparent); }
.cf-countdown-reel-hero .crh-steps li.is-live .crh-roundel { background: color-mix(in oklch, var(--accent) 18%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cf-countdown-reel-hero .crh-punch { margin: 16px 0 18px; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight, 900); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: var(--display-tracking, -0.03em); text-transform: var(--display-case, none); }
.cf-countdown-reel-hero .crh-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 80px; margin: 0; padding: 14px 18px; border: 1px solid oklch(from var(--button-bg, var(--cta)) calc(l - 0.12) c h); border-radius: var(--button-radius, var(--radius, 12px)); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l + 0.04) c h), var(--button-bg-2, var(--cta-2))); color: var(--button-ink, var(--cta-ink)); font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); text-align: center; text-decoration: none; text-transform: var(--button-case, 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 + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--crh-shade) l c h / 0.3), 0 6px 12px -4px oklch(from var(--crh-shade) l c h / 0.4)); transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; -webkit-tap-highlight-color: transparent; }
.cf-countdown-reel-hero .crh-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 32%, oklch(from var(--button-bg, var(--cta)) calc(l + 0.22) c h / 0.45) 50%, transparent 68%); transform: translateX(-130%); animation: crh-sheen 5.5s ease-in-out 1s infinite; animation-play-state: var(--crh-play); }
.cf-countdown-reel-hero .crh-cta:hover:not(:disabled), .cf-countdown-reel-hero .crh-cta.is-hover { background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.02) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.06) c h)); }
.cf-countdown-reel-hero .crh-cta:active:not(:disabled), .cf-countdown-reel-hero .crh-cta.is-active { transform: translateY(1px); background: linear-gradient(oklch(from var(--button-bg, var(--cta)) calc(l - 0.08) c h), oklch(from var(--button-bg-2, var(--cta-2)) calc(l - 0.1) c h)); box-shadow: inset 0 2px 3px oklch(from var(--button-bg, var(--cta)) calc(l - 0.22) c h / 0.55), inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--crh-shade) l c h / 0.25); }
.cf-countdown-reel-hero .crh-cta:focus-visible { outline: 3px solid var(--field-focus, var(--accent)); outline-offset: 3px; }
.cf-countdown-reel-hero .crh-cta:disabled { cursor: not-allowed; border-color: color-mix(in oklch, var(--ink) 14%, transparent); background: var(--button-2-bg, var(--secondary)); color: var(--button-2-ink, var(--secondary-ink)); text-shadow: none; box-shadow: inset 0 -2px 0 oklch(from var(--button-2-bg, var(--secondary)) calc(l - 0.1) c h); }
.cf-countdown-reel-hero .crh-cta:disabled::after { display: none; }
.cf-countdown-reel-hero .crh-cta-main { font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.3125rem); line-height: 1.15; text-wrap: balance; }
.cf-countdown-reel-hero .crh-cta-sub { font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.3; text-transform: none; text-wrap: pretty; }
.cf-countdown-reel-hero .crh-cta-price { font-family: var(--button-font, var(--font-display)); font-weight: var(--button-weight, 800); font-size: 1.15em; }
.cf-countdown-reel-hero .crh-assure { display: block; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: pretty; }
.cf-countdown-reel-hero .crh-assure svg { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: var(--success); }
@keyframes crh-in { from { opacity: 0.82; transform: scale(0.985); } }
@keyframes crh-mark { from { background-size: 0% 54%; } }
@keyframes crh-tick { to { transform: translateX(-50%); } }
@keyframes crh-drift { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes crh-sweep { from { --crh-sweep: 0deg; } to { --crh-sweep: 360deg; } }
@keyframes crh-num { 0% { opacity: 0.2; transform: scale(1.06); } 14% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes crh-flicker { 0% { opacity: 1; } 50% { opacity: 0.93; } 100% { opacity: 0.98; } }
@keyframes crh-weave { 0% { transform: translate(0, 0); } 33% { transform: translate(0.25%, -0.3%); } 66% { transform: translate(-0.2%, 0.2%); } 100% { transform: translate(0, 0.25%); } }
@keyframes crh-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -2%); } 100% { transform: translate(5%, 2%); } }
@keyframes crh-scratch { 0% { transform: translateX(0); opacity: 0.75; } 33% { transform: translateX(7px); opacity: 0.15; } 66% { transform: translateX(-5px); opacity: 0.55; } 100% { transform: translateX(2px); opacity: 0.3; } }
@keyframes crh-dust { 0% { opacity: 0; } 40% { opacity: 0.8; } 60% { opacity: 0; } 100% { opacity: 0; } }
@keyframes crh-sheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (max-width: 900px) {
.cf-countdown-reel-hero .crh-stage { grid-template-columns: minmax(0, 1fr); }
.cf-countdown-reel-hero .crh-card { margin: -40px clamp(10px, 3vw, 28px) 0; }
}
@media (max-width: 480px) {
.cf-countdown-reel-hero .crh-track { gap: 6px; padding-inline: 6px 8px; }
.cf-countdown-reel-hero .crh-thumbs img { width: 50px; height: 50px; }
.cf-countdown-reel-hero .crh-thumbs img + img { margin-left: -16px; }
.cf-countdown-reel-hero .crh-steps p { font-size: 16px; }
.cf-countdown-reel-hero .crh-cta { min-height: 76px; padding: 12px 14px; }
}
/* Reduced motion: a finished still. !important is kept because each part declares its own animation with higher specificity. */
@media (prefers-reduced-motion: reduce) {
.cf-countdown-reel-hero *, .cf-countdown-reel-hero *::before, .cf-countdown-reel-hero *::after { animation: none !important; transition: none !important; }
.cf-countdown-reel-hero .crh-leader:not(.is-static) { display: none; }
.cf-countdown-reel-hero .crh-motion-ctrl { display: none; }
.cf-countdown-reel-hero .crh-ticker { -webkit-mask-image: none; mask-image: none; }
.cf-countdown-reel-hero .crh-ticker-run { width: auto; }
.cf-countdown-reel-hero .crh-ticker-set { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 4px; padding-block: 6px; }
.cf-countdown-reel-hero .crh-ticker-set[aria-hidden='true'] { display: none; }
.cf-countdown-reel-hero .crh-scene { transform: scale(1.03); }
}
`
pieces/attention/countdown-reel-hero/specimen.tsx 37 lines
import __studioImagec929d135 from "../assets/d735505966c95072.webp";
// Specimen: Countdown Reel Hero with the studio sample kit and a generated outcome scene.
// The wrapper sets no tokens or fonts; every image goes through a slot inside render.
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
import { CountdownReelHero } from '../countdown-reel-hero'
export const states = ['default', 'hover', 'active', 'disabled'] as const
type SpecimenState = (typeof states)[number]
export default function CountdownReelHeroSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample
return (
<CountdownReelHero
headline={sample.headline}
highlight='a clear plan'
lead={sample.lead}
productName={sample.name}
items={sample.items.map((item, index) => ({
name: item.name,
image: slot('item-' + (index + 1), item.image),
imageAlt: item.imageAlt,
}))}
steps={sample.items.map((item) => item.detail)}
punch='Launch.'
label={'Yes! I want ' + sample.name}
price={sample.price}
priceNote={sample.note}
reassurance={sample.sublabel + ' · ' + sample.guarantee}
ticker={[...sample.items.map((item) => item.name), ...sample.reassurance]}
sceneImage={slot('scene', __studioImagec929d135)}
sceneAlt='A founder planning a first funnel with sticky notes beside a laptop, guide and checklist'
state={state}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalCountdownReelHero |
React.ReactNode |
|
highlight OptionalCountdownReelHero |
string |
|
headingLevel OptionalCountdownReelHero |
'h1' | 'h2' |
|
lead OptionalCountdownReelHero |
React.ReactNode |
|
productName OptionalCountdownReelHero |
string |
|
items OptionalCountdownReelHero |
CountdownReelHeroItem[] |
|
steps OptionalCountdownReelHero |
string[] |
|
punch OptionalCountdownReelHero |
string |
|
label OptionalCountdownReelHero |
string |
|
price OptionalCountdownReelHero |
string |
|
priceNote OptionalCountdownReelHero |
string |
|
reassurance OptionalCountdownReelHero |
string |
|
ticker OptionalCountdownReelHero |
string[] |
|
sceneImage OptionalCountdownReelHero |
string |
|
sceneAlt OptionalCountdownReelHero |
string |
|
video OptionalCountdownReelHero |
React.ReactNode |
|
playIntro OptionalCountdownReelHero |
boolean |
|
href OptionalCountdownReelHero |
string |
|
onAction OptionalCountdownReelHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalCountdownReelHero |
boolean |
|
state OptionalCountdownReelHero |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalCountdownReelHero |
CountdownReelHeroCopy |
|
className OptionalCountdownReelHero |
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- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d735505966c95072.webp
image/webp · 69.5 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB