Kinetic Offer Band 1
Kinetic offer band: reads the offer out like a promo video. Each item slams in beside its flipping thumbnail, the lines compress into one stack, the price lands, and a huge button lands last. It plays once on entering view and replays on scroll-back; every static render shows the finished offer.
Use it in a prompt
Use content/kinetic-offer-band 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/content/kinetic-offer-band.tsx. - Import it and pass your copy and images (Props tab):
import { KineticOfferBand } from "@/components/funneldna/content/kinetic-offer-band"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/kinetic-offer-band/component.tsx 547 lines
// layout: diagonal-split
// Kinetic offer band: reads the offer out like a promo video. Each item slams in beside its flipping thumbnail, the lines compress into one stack, the price lands, and a huge button lands last. It plays once on entering view and replays on scroll-back; every static render shows the finished offer.
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from 'react';
import { Check, CircleAlert, Lock } from 'lucide-react';
import { FX_HOST } from '../fx/fx';
import { Mark } from '../marks/marks';
export type KineticOfferItem = {
title: string;
/** item-n slot image; a square crop works best */
image?: string;
imageAlt?: string;
/** optional supplied value line, e.g. '$49 value' */
value?: string;
};
export type KineticOfferBandProps = {
headline?: React.ReactNode;
/** short paragraphs, each opening with a bold lead-in */
story?: { lead: string; text: string }[];
/** 3 to 5 offer items; each one plays as a beat */
items?: KineticOfferItem[];
/** selling line above the price */
totalLabel?: string;
regularPrice?: string;
price?: string;
regularLabel?: string;
todayLabel?: string;
priceNote?: string;
/** supplied guarantee; when set, the commit checkbox shows above the button */
guarantee?: string;
/** commit line; {guarantee} is replaced with the guarantee text */
commitLabel?: string;
commitError?: string;
label?: string;
reassurance?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
/** kept for API compatibility: the sequence now plays once in under 5s, so no motion control renders */
copy?: { pause?: string; play?: string; replay?: string };
className?: string;
};
type Phase = 'still' | 'run';
const DEFAULT_ITEMS: KineticOfferItem[] = [
{ title: 'The complete course' },
{ title: 'Live group calls' },
{ title: 'Templates and swipe files' },
];
const DEFAULT_STORY = [
{ lead: 'Everything works together.', text: 'Each piece builds on the last, so you always know the next step.' },
];
/** the sequence starts once the band's top edge passes this share of the viewport height */
const ENTER_AT = 0.85;
export function KineticOfferBand(props: KineticOfferBandProps) {
const {
headline = 'Everything you need, in one offer.',
story = DEFAULT_STORY,
items = DEFAULT_ITEMS,
totalLabel = 'Everything above, in one step',
regularPrice,
price,
regularLabel = 'Regular price',
todayLabel = 'Today',
priceNote,
guarantee,
commitLabel = 'I understand I’m covered by the {guarantee}.',
commitError = 'Tick the box to confirm, then continue.',
label = 'Yes, I Want It All',
reassurance = 'Secure checkout',
href,
onAction,
disabled = false,
state = 'default',
className,
} = props;
const list = items.slice(0, 5);
const n = list.length;
const forced = state !== 'default';
const isDisabled = disabled || state === 'disabled';
const needsCommit = Boolean(guarantee);
const uid = useId();
const headId = `${uid}-h`;
const checkId = `${uid}-c`;
const errId = `${uid}-e`;
const noteId = `${uid}-n`;
const rootRef = useRef<HTMLElement>(null);
const checkRef = useRef<HTMLInputElement>(null);
const phaseRef = useRef<Phase>('still');
const readyRef = useRef(true);
const [phase, setPhaseState] = useState<Phase>('still');
const [run, setRun] = useState(0);
const [checked, setChecked] = useState(state !== 'error');
const [showError, setShowError] = useState(state === 'error');
const setPhase = useCallback((next: Phase) => {
phaseRef.current = next;
setPhaseState(next);
}, []);
useEffect(() => {
setChecked(state !== 'error');
setShowError(state === 'error');
}, [state]);
// Plays once when the band enters view, replays when it is scrolled back into view from below.
// The resting render is always the finished offer, so static renders never show a half-played frame.
useIsoLayoutEffect(() => {
const el = rootRef.current;
if (!el || forced || typeof window === 'undefined' || typeof IntersectionObserver === 'undefined' || !window.matchMedia) {
setPhase('still');
return;
}
const mq = window.matchMedia('(prefers-reduced-motion: reduce)');
// Automated captures (headless audits, screenshots) get the finished state, never a mid-sequence frame.
const automated = typeof navigator !== 'undefined' && navigator.webdriver === true;
if (mq.matches || automated) {
setPhase('still');
return;
}
readyRef.current = true;
const start = () => {
readyRef.current = false;
setRun((r) => r + 1);
setPhase('run');
};
const rect = el.getBoundingClientRect();
const vh = window.innerHeight || document.documentElement.clientHeight;
if (rect.bottom > 0 && rect.top < vh * ENTER_AT) {
if (rect.top >= -1) start();
else readyRef.current = false;
}
const io = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
if (readyRef.current && entry.boundingClientRect.top >= -1) start();
readyRef.current = false;
} else {
readyRef.current = true;
if (phaseRef.current === 'run') setPhase('still');
}
}
},
{ rootMargin: `0px 0px -${Math.round((1 - ENTER_AT) * 100)}% 0px`, threshold: 0 },
);
io.observe(el);
const onMotionPref = () => {
if (mq.matches) {
io.disconnect();
setPhase('still');
}
};
mq.addEventListener('change', onMotionPref);
return () => {
io.disconnect();
mq.removeEventListener('change', onMotionPref);
};
}, [forced, setPhase]);
// Keyboard users never land on an invisible control: focusing inside finishes the sequence.
const onFocusCapture = () => {
if (phaseRef.current === 'run') setPhase('still');
};
const onLandEnd = (event: React.AnimationEvent<HTMLDivElement>) => {
if (event.target === event.currentTarget && event.animationName === 'cfkob-land' && phaseRef.current === 'run') {
setPhase('still');
}
};
const onAct = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault();
return;
}
if (needsCommit && !checked) {
event.preventDefault();
setShowError(true);
checkRef.current?.focus();
return;
}
onAction?.();
};
const commitText = commitLabel.split('{guarantee}').join(guarantee ?? '');
const errorOn = needsCommit && showError && !checked;
const describedBy = reassurance ? noteId : undefined;
const rootStyle = { ...FX_HOST, '--kob-n': n } as React.CSSProperties;
const action =
href && !isDisabled ? (
<a className='kob-btn' href={href} onClick={onAct} aria-describedby={describedBy}>
{label}
</a>
) : (
<button type='button' className='kob-btn' onClick={onAct} disabled={isDisabled} aria-describedby={describedBy}>
{label}
</button>
);
return (
<section
ref={rootRef}
className={className ? `cf-kinetic-offer-band ${className}` : 'cf-kinetic-offer-band'}
data-play={phase}
data-state={state}
style={rootStyle}
aria-labelledby={headId}
onFocusCapture={onFocusCapture}
>
<style>{CSS}</style>
<div className='kob-inner'>
<div className='kob-grid'>
<div className='kob-head'>
<h2 id={headId} className='kob-h'>
{headline}
</h2>
</div>
<div className='kob-listzone'>
{n > 0 && (
<ul key={`list-${run}`} className='kob-list'>
{list.map((item, i) => (
<li
key={`${item.title}-${i}`}
className={item.image ? 'kob-row kob-anim' : 'kob-row kob-anim is-bare'}
style={{ '--i': i } as React.CSSProperties}
>
{item.image && (
<span className='kob-thumb'>
<img src={item.image} alt={item.imageAlt ?? ''} width={96} height={96} decoding='async' />
</span>
)}
<span className='kob-row-text'>
<span className='kob-row-title'>{item.title}</span>
{item.value && <span className='kob-chip'>{item.value}</span>}
</span>
</li>
))}
</ul>
)}
</div>
<div key={`reel-${run}`} className='kob-reelzone' aria-hidden='true'>
<div className='kob-reel'>
{list.map((item, i) => (
<div key={`${item.title}-${i}`} className='kob-beat' style={{ '--i': i } as React.CSSProperties}>
{item.image && (
<span className='kob-beat-thumb kob-anim'>
<img src={item.image} alt='' width={168} height={168} decoding='async' />
</span>
)}
<span className={`kob-beat-line kob-anim kob-fx-${i % 3}`}>{item.title}</span>
</div>
))}
</div>
</div>
<div className='kob-close'>
<div key={`wedge-${run}`} className='kob-wedge' aria-hidden='true'>
<span className='kob-wedge-accent kob-anim' />
<span className='kob-wedge-surface kob-anim' />
</div>
<div className='kob-close-body'>
{story.length > 0 && (
<div key={`story-${run}`} className='kob-story kob-anim'>
{story.map((para, i) => (
<p key={i}>
<strong>{para.lead}</strong> {para.text}
</p>
))}
</div>
)}
<div key={`total-${run}`} className='kob-total kob-anim'>
<h3 className='kob-total-label'>{totalLabel}</h3>
{(regularPrice || price) && (
<div className='kob-prices'>
{regularPrice && (
<div className='kob-pcol'>
<span className='kob-plabel'>{regularLabel}</span>
<span className='kob-was'>
<s className='kob-was-num'>{regularPrice}</s>
<span className='kob-slash kob-anim' aria-hidden='true'>
<Mark name='cross' width='100%' height='100%' />
</span>
</span>
</div>
)}
{price && (
<div className='kob-pcol'>
<span className='kob-plabel'>{todayLabel}</span>
<span className='kob-now kob-anim'>{price}</span>
</div>
)}
</div>
)}
{priceNote && <p className='kob-note'>{priceNote}</p>}
</div>
{needsCommit && (
<div key={`commit-${run}`} className={errorOn ? 'kob-commit kob-anim is-error' : 'kob-commit kob-anim'}>
<label className='kob-check' htmlFor={checkId}>
<input
ref={checkRef}
id={checkId}
type='checkbox'
checked={checked}
disabled={isDisabled}
onChange={(event) => {
setChecked(event.target.checked);
if (event.target.checked) setShowError(false);
}}
aria-invalid={errorOn || undefined}
aria-describedby={errorOn ? errId : undefined}
/>
<span className='kob-box' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='kob-check-text'>{commitText}</span>
</label>
{errorOn && (
<p id={errId} className='kob-error' role='alert'>
<CircleAlert className='kob-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{commitError}
</p>
)}
</div>
)}
<div key={`land-${run}`} className='kob-land kob-anim' onAnimationEnd={onLandEnd}>
{action}
{reassurance && (
<p id={noteId} className='kob-reassure'>
<Lock className='kob-inline-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
)}
</div>
</div>
</div>
</div>
</div>
</section>
);
}
export default KineticOfferBand;
// Layout effect in the browser so an in-view band starts its run before first paint (no flash of the end frame).
const useIsoLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
const CSS = `
.cf-kinetic-offer-band {
--kob-beat: 640ms;
--kob-tc: calc(var(--kob-n, 3) * var(--kob-beat));
--kob-pt: clamp(48px, 7vw, 96px);
--kob-pb: clamp(48px, 7vw, 96px);
--kob-gutter: clamp(16px, 5vw, 48px);
--kob-shadow: var(--shadow, oklch(0.22 0.03 260));
position: relative;
isolation: isolate;
overflow: hidden;
overflow: clip;
padding: var(--kob-pt) var(--kob-gutter) var(--kob-pb);
background: var(--band, oklch(0.27 0.067 256));
color: var(--band-ink, oklch(1 0 0));
font-family: var(--font-body, system-ui, sans-serif);
}
.cf-kinetic-offer-band, .cf-kinetic-offer-band * { box-sizing: border-box; }
.cf-kinetic-offer-band .kob-inner { position: relative; z-index: 1; max-inline-size: 1120px; margin-inline: auto; container: kob / inline-size; }
.cf-kinetic-offer-band .kob-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'list' 'close'; row-gap: 28px; }
.cf-kinetic-offer-band .kob-grid > * { min-width: 0; }
.cf-kinetic-offer-band .kob-head { grid-area: head; }
.cf-kinetic-offer-band .kob-h { margin: 0; max-inline-size: 40rem; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); font-size: clamp(2rem, 4.6cqi, 3.25rem); line-height: 1.06; color: var(--band-ink, oklch(1 0 0)); text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.cf-kinetic-offer-band .kob-listzone { grid-area: list; min-block-size: clamp(11rem, 26cqi, 18rem); }
.cf-kinetic-offer-band .kob-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cf-kinetic-offer-band .kob-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.4cqi, 24px); padding-block: 14px; border-top: 1px solid oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.16); transform-origin: left center; }
.cf-kinetic-offer-band .kob-row:first-child { border-top: 0; padding-top: 0; }
.cf-kinetic-offer-band .kob-row.is-bare { grid-template-columns: minmax(0, 1fr); }
.cf-kinetic-offer-band .kob-thumb { display: block; inline-size: clamp(56px, 8.6cqi, 96px); aspect-ratio: 1; border-radius: 8px; overflow: hidden; filter: drop-shadow(0 2px 3px oklch(from var(--kob-shadow) l c h / 0.4)) drop-shadow(0 10px 12px oklch(from var(--kob-shadow) l c h / 0.3)); }
.cf-kinetic-offer-band .kob-thumb img, .cf-kinetic-offer-band .kob-beat-thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; }
.cf-kinetic-offer-band .kob-row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding-top: 4px; }
.cf-kinetic-offer-band .kob-row-title { max-inline-size: 100%; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.02em); text-transform: var(--display-case, none); font-size: clamp(1.375rem, 3.4cqi, 2.375rem); line-height: 1.08; color: var(--band-ink, oklch(1 0 0)); text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.cf-kinetic-offer-band .kob-chip { display: inline-flex; align-items: center; min-block-size: 28px; padding: 4px 12px; border-radius: 999px; background: oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.12); color: var(--band-ink, oklch(1 0 0)); font-size: 0.875rem; font-weight: 800; line-height: 1.2; }
/* The reel overlays the list zone only while the sequence runs; at rest it is hidden and takes no space. */
.cf-kinetic-offer-band .kob-reelzone { grid-area: list; position: relative; z-index: 2; overflow: hidden; pointer-events: none; visibility: hidden; }
.cf-kinetic-offer-band[data-play='run'] .kob-reelzone { visibility: visible; }
.cf-kinetic-offer-band .kob-reel { position: absolute; inset: 0; display: grid; align-items: center; }
.cf-kinetic-offer-band .kob-beat { grid-area: 1 / 1; display: flex; align-items: center; gap: clamp(14px, 3cqi, 40px); min-width: 0; opacity: 0; }
.cf-kinetic-offer-band[data-play='run'] .kob-beat { opacity: 1; }
.cf-kinetic-offer-band .kob-beat-thumb { flex: 0 0 auto; display: block; inline-size: clamp(64px, 15cqi, 168px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; backface-visibility: hidden; filter: drop-shadow(0 2px 3px oklch(from var(--kob-shadow) l c h / 0.45)) drop-shadow(0 14px 16px oklch(from var(--kob-shadow) l c h / 0.35)); }
.cf-kinetic-offer-band .kob-beat-line { flex: 0 1 auto; min-width: 0; padding-block: 0.06em; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); font-size: clamp(2rem, 8.4cqi, 6rem); line-height: 1; color: var(--band-ink, oklch(1 0 0)); text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; transform-origin: left center; }
.cf-kinetic-offer-band .kob-close { grid-area: close; position: relative; isolation: isolate; margin-top: 4px; padding-top: 96px; }
.cf-kinetic-offer-band .kob-wedge { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--kob-gutter)) calc(-1 * var(--kob-pb)); pointer-events: none; }
.cf-kinetic-offer-band .kob-wedge-accent, .cf-kinetic-offer-band .kob-wedge-surface { position: absolute; inset: 0; }
.cf-kinetic-offer-band .kob-wedge-accent { background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257))); clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%); }
.cf-kinetic-offer-band .kob-wedge-surface { background: var(--surface, oklch(1 0 0)); clip-path: polygon(0 76px, 100% 20px, 100% 100%, 0 100%); }
.cf-kinetic-offer-band .kob-close-body { position: relative; max-inline-size: 34rem; color: var(--ink, oklch(0.21 0.034 263)); }
/* At rest the close copy owns its surface outright, so its text never reads against the band. The wedge already covers this area, so nothing visible changes. During the wipe the wedge carries it alone. */
.cf-kinetic-offer-band:not([data-play='run']) .kob-close-body { background: var(--surface, oklch(1 0 0)); }
.cf-kinetic-offer-band .kob-story { margin-bottom: 24px; }
.cf-kinetic-offer-band .kob-story p { margin: 0; max-inline-size: 60ch; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; color: var(--ink, oklch(0.21 0.034 263)); text-wrap: pretty; }
.cf-kinetic-offer-band .kob-story p + p { margin-top: 12px; }
.cf-kinetic-offer-band .kob-story strong { font-weight: 800; }
.cf-kinetic-offer-band .kob-total-label { margin: 0 0 16px; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: -0.01em; text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; color: var(--ink, oklch(0.21 0.034 263)); text-wrap: balance; overflow-wrap: anywhere; }
.cf-kinetic-offer-band .kob-prices { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; align-items: end; column-gap: 32px; }
.cf-kinetic-offer-band .kob-pcol { display: contents; }
.cf-kinetic-offer-band .kob-plabel { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted, oklch(0.45 0.03 258)); }
.cf-kinetic-offer-band .kob-was { position: relative; display: inline-block; justify-self: start; }
.cf-kinetic-offer-band .kob-was-num { display: block; text-decoration: none; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(2rem, 4.4cqi, 2.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--muted, oklch(0.45 0.03 258)); }
.cf-kinetic-offer-band .kob-slash { position: absolute; inset: -18% -14%; display: block; color: var(--danger, oklch(0.5 0.17 27)); pointer-events: none; }
.cf-kinetic-offer-band .kob-slash svg { display: block; inline-size: 100%; block-size: 100%; }
.cf-kinetic-offer-band .kob-now { display: inline-block; justify-self: start; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); font-size: clamp(2.5rem, 6.2cqi, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink, oklch(0.21 0.034 263)); transform: rotate(-2deg); transform-origin: left bottom; }
.cf-kinetic-offer-band .kob-note { margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted, oklch(0.45 0.03 258)); text-wrap: pretty; }
.cf-kinetic-offer-band .kob-commit { margin-top: 24px; }
.cf-kinetic-offer-band .kob-check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cf-kinetic-offer-band .kob-check input { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 26px; block-size: 26px; margin: 0; opacity: 0; cursor: pointer; }
.cf-kinetic-offer-band .kob-check input:disabled { cursor: not-allowed; }
.cf-kinetic-offer-band .kob-box { flex: 0 0 auto; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 7px; border: 2px solid var(--field-border, color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 32%, transparent)); background: var(--field, var(--card, oklch(1 0 0))); color: transparent; transition: background 0.16s ease, border-color 0.16s ease; }
.cf-kinetic-offer-band .kob-check:hover input:not(:checked):not(:disabled) + .kob-box { border-color: var(--ink, oklch(0.21 0.034 263)); }
.cf-kinetic-offer-band .kob-check input:checked + .kob-box { background: var(--success, oklch(0.5 0.138 150)); border-color: var(--success, oklch(0.5 0.138 150)); color: var(--status-glyph, #fff); }
.cf-kinetic-offer-band .kob-check input:focus-visible + .kob-box { outline: 3px solid oklch(from var(--field-focus, var(--accent, oklch(0.5 0.17 257))) l c h / 0.55); outline-offset: 2px; }
.cf-kinetic-offer-band .kob-check-text { padding-top: 1px; font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--ink, oklch(0.21 0.034 263)); text-wrap: pretty; }
.cf-kinetic-offer-band .kob-commit.is-error .kob-box { border-color: var(--danger, oklch(0.5 0.17 27)); }
.cf-kinetic-offer-band .kob-error { margin: 8px 0 0 38px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--danger, oklch(0.5 0.17 27)); text-wrap: pretty; }
.cf-kinetic-offer-band .kob-inline-icon { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-kinetic-offer-band .kob-land { margin-top: 20px; }
.cf-kinetic-offer-band .kob-btn {
--kob-b: var(--button-bg, var(--cta, oklch(0.576 0.209 29.5)));
--kob-b2: var(--button-bg-2, var(--cta-2, oklch(0.506 0.206 29.5)));
--kob-l1: 0.04;
--kob-l2: -0.02;
position: relative; display: flex; align-items: center; justify-content: center; inline-size: 100%; min-block-size: clamp(76px, 8.6cqi, 96px); margin: 0; padding: 14px clamp(20px, 3cqi, 36px); border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(180deg, oklch(from var(--kob-b) calc(l + var(--kob-l1)) c h), oklch(from var(--kob-b2) calc(l + var(--kob-l2)) c h));
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--kob-b) calc(l + 0.14) c h / 0.7), inset 0 -4px 0 oklch(from var(--kob-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--kob-shadow) l c h / 0.32), 0 12px 22px -8px oklch(from var(--kob-shadow) l c h / 0.45));
color: var(--button-ink, var(--cta-ink, oklch(1 0 0)));
font-family: var(--button-font, var(--font-display, inherit)); font-weight: var(--button-weight, 800); text-transform: var(--button-case, none);
font-size: clamp(1.25rem, 2.25cqi, 1.875rem); line-height: 1.12; letter-spacing: -0.01em; text-align: center; text-decoration: none; text-wrap: balance; overflow-wrap: anywhere;
text-shadow: var(--button-text-shadow, none);
cursor: pointer; -webkit-tap-highlight-color: transparent;
transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cf-kinetic-offer-band .kob-btn:hover, .cf-kinetic-offer-band[data-state='hover'] .kob-btn { --kob-l1: -0.01; --kob-l2: -0.07; box-shadow: inset 0 1px 0 oklch(from var(--kob-b) calc(l + 0.1) c h / 0.6), inset 0 -4px 0 oklch(from var(--kob-b) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--kob-shadow) l c h / 0.36), 0 16px 26px -8px oklch(from var(--kob-shadow) l c h / 0.52); }
.cf-kinetic-offer-band .kob-btn:active, .cf-kinetic-offer-band[data-state='active'] .kob-btn { --kob-l1: -0.05; --kob-l2: -0.1; transform: translateY(2px); box-shadow: inset 0 2px 5px oklch(from var(--kob-b) calc(l - 0.24) c h / 0.55), inset 0 -2px 0 oklch(from var(--kob-b) calc(l - 0.18) c h), 0 1px 1px oklch(from var(--kob-shadow) l c h / 0.3); }
.cf-kinetic-offer-band .kob-btn:focus-visible { outline: 3px solid var(--field-focus, var(--accent, oklch(0.5 0.17 257))); outline-offset: 3px; }
.cf-kinetic-offer-band .kob-btn:disabled { cursor: not-allowed; transform: none; background: var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263))); color: var(--button-2-ink, var(--secondary-ink, oklch(0.21 0.034 263))); text-shadow: none; box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 2px oklch(from var(--kob-shadow) l c h / 0.2))); }
.cf-kinetic-offer-band .kob-reassure { margin: 12px 0 0; text-align: center; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted, oklch(0.45 0.03 258)); text-wrap: pretty; }
@container kob (min-width: 860px) {
.cf-kinetic-offer-band .kob-grid { --kob-g: clamp(96px, 15cqi, 200px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: 'head close' 'list close' '. close'; grid-template-rows: auto auto 1fr; column-gap: var(--kob-g); row-gap: 32px; }
.cf-kinetic-offer-band .kob-reelzone { grid-area: 2 / 1 / 3 / 3; }
.cf-kinetic-offer-band .kob-close { margin-top: 0; padding-top: 0; align-self: stretch; }
.cf-kinetic-offer-band .kob-wedge { inset: calc(-1 * var(--kob-pt)) -50vw calc(-1 * var(--kob-pb)) calc(-1 * var(--kob-g)); }
.cf-kinetic-offer-band .kob-wedge-accent { clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--kob-g) * 0.62) 100%); }
.cf-kinetic-offer-band .kob-wedge-surface { clip-path: polygon(calc(var(--kob-g) * 0.3) 0, 100% 0, 100% 100%, calc(var(--kob-g) * 0.92) 100%); }
.cf-kinetic-offer-band .kob-close-body { max-inline-size: none; padding-top: 6px; }
}
/* The sequence runs only while data-play='run': one beat per item, then the compress, the wedge wipe, the price and the button. Without it every element rests in its final state. */
.cf-kinetic-offer-band[data-play='run'] .kob-beat-line { animation-duration: var(--kob-beat); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); animation-delay: calc(var(--i) * var(--kob-beat)); animation-fill-mode: both; }
.cf-kinetic-offer-band[data-play='run'] .kob-fx-0 { animation-name: cfkob-slam; }
.cf-kinetic-offer-band[data-play='run'] .kob-fx-1 { animation-name: cfkob-slide; }
.cf-kinetic-offer-band[data-play='run'] .kob-fx-2 { animation-name: cfkob-rise; }
.cf-kinetic-offer-band[data-play='run'] .kob-beat-thumb { animation: cfkob-flip var(--kob-beat) cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * var(--kob-beat)) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-row { animation: cfkob-compress 460ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--kob-tc) + var(--i) * 70ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-wedge-accent { animation: cfkob-wipe 520ms cubic-bezier(0.7, 0, 0.2, 1) calc(var(--kob-tc) + 160ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-wedge-surface { animation: cfkob-wipe 520ms cubic-bezier(0.7, 0, 0.2, 1) calc(var(--kob-tc) + 250ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-story { animation: cfkob-up 420ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--kob-tc) + 300ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-total { animation: cfkob-up 420ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--kob-tc) + 420ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-now { animation: cfkob-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--kob-tc) + 540ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-slash { animation: cfkob-draw 300ms ease-out calc(var(--kob-tc) + 820ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-commit { animation: cfkob-up 420ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--kob-tc) + 640ms) both; }
.cf-kinetic-offer-band[data-play='run'] .kob-land { animation: cfkob-land 560ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--kob-tc) + 780ms) both; }
@keyframes cfkob-slam {
0% { opacity: 0; transform: scale(1.32); }
20% { opacity: 1; transform: scale(0.97); }
30% { transform: scale(1); }
84% { opacity: 1; transform: scale(1.015); }
100% { opacity: 0; transform: scale(1.04) translateY(-8%); }
}
@keyframes cfkob-slide {
0% { opacity: 0; transform: translateX(-18%); clip-path: inset(-0.25em 100% -0.25em -0.1em); }
26% { opacity: 1; transform: translateX(1.5%); clip-path: inset(-0.25em -0.1em -0.25em -0.1em); }
34% { transform: translateX(0); }
84% { opacity: 1; transform: translateX(0); clip-path: inset(-0.25em -0.1em -0.25em -0.1em); }
100% { opacity: 0; transform: translateX(10%); clip-path: inset(-0.25em -0.1em -0.25em 40%); }
}
@keyframes cfkob-rise {
0% { opacity: 0; transform: translateY(38%); clip-path: inset(100% -0.1em -0.25em -0.1em); }
6% { opacity: 1; }
28% { transform: translateY(0); clip-path: inset(-0.25em -0.1em -0.25em -0.1em); }
84% { opacity: 1; transform: translateY(0); clip-path: inset(-0.25em -0.1em -0.25em -0.1em); }
100% { opacity: 0; transform: translateY(-16%); clip-path: inset(-0.25em -0.1em 45% -0.1em); }
}
@keyframes cfkob-flip {
0%, 6% { opacity: 0; transform: perspective(900px) rotateY(-96deg); }
28% { opacity: 1; transform: perspective(900px) rotateY(10deg); }
38% { transform: perspective(900px) rotateY(0deg); }
84% { opacity: 1; transform: perspective(900px) rotateY(0deg) scale(1); }
100% { opacity: 0; transform: perspective(900px) rotateY(0deg) scale(0.88); }
}
@keyframes cfkob-compress {
0% { opacity: 0; transform: translateY(-24px) scale(1.14); }
62% { opacity: 1; transform: translateY(2px) scale(0.99); }
100% { opacity: 1; transform: none; }
}
@keyframes cfkob-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
@keyframes cfkob-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes cfkob-pop {
0% { opacity: 0; transform: scale(1.7) rotate(-2deg); }
60% { opacity: 1; transform: scale(0.96) rotate(-2deg); }
100% { opacity: 1; transform: rotate(-2deg); }
}
@keyframes cfkob-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cfkob-land {
0% { opacity: 0; transform: translateY(48px) scale(1.06); }
55% { opacity: 1; transform: translateY(-5px) scale(0.99); }
78% { transform: translateY(1px) scale(1.003); }
100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.cf-kinetic-offer-band .kob-anim { animation: none !important; }
.cf-kinetic-offer-band .kob-reelzone { display: none; }
.cf-kinetic-offer-band .kob-btn, .cf-kinetic-offer-band .kob-box { transition: none; }
}
@media print {
.cf-kinetic-offer-band .kob-anim { animation: none !important; }
.cf-kinetic-offer-band .kob-reelzone { display: none; }
}
`;
pieces/content/kinetic-offer-band/specimen.tsx 48 lines
import __studioImage82d77639 from "../assets/3defa86a43a9a212.webp";
import __studioImage28f2d07d from "../assets/9dd966ae9bc06ebf.webp";
import __studioImage5fdcf026 from "../assets/8dba33b1863cc5a4.webp";
import React from 'react';
import { KineticOfferBand, type KineticOfferBandProps } from '../kinetic-offer-band';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
export default function KineticOfferBandSpecimen({ state = 'default' }: { state?: KineticOfferBandProps['state'] }) {
const sample = defaults.sample;
return (
<KineticOfferBand
state={state}
headline='Six weeks to a sales page you’re proud to ship.'
items={[
{
title: 'The 6-week course',
image: slot('item-1', __studioImage82d77639),
imageAlt: 'Laptop open to a writing lesson',
},
{
title: 'Weekly live Q&A',
image: slot('item-2', __studioImage28f2d07d),
imageAlt: 'Writer laughing on a live video call',
},
{
title: 'Template vault',
image: slot('item-3', __studioImage5fdcf026),
imageAlt: 'Fanned stack of printed copy templates',
},
]}
story={[
{ lead: 'Write on a schedule.', text: 'Each week has one section of your page to draft, so the blank page never wins.' },
{ lead: 'Never edit alone.', text: 'Bring your draft to the live Q&A and leave knowing the next line to write.' },
]}
totalLabel='The whole studio, one payment'
regularPrice={sample.regularPrice}
price={sample.price}
priceNote='One payment · Lifetime vault access'
guarantee={sample.guarantee}
label='Join the Studio Today'
reassurance='Secure checkout · Week one opens instantly'
href='#checkout'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalKineticOfferBand |
React.ReactNode |
|
story OptionalKineticOfferBand |
{ lead: string; text: string }[] |
|
items OptionalKineticOfferBand |
KineticOfferItem[] |
|
totalLabel OptionalKineticOfferBand |
string |
|
regularPrice OptionalKineticOfferBand |
string |
|
price OptionalKineticOfferBand |
string |
|
regularLabel OptionalKineticOfferBand |
string |
|
todayLabel OptionalKineticOfferBand |
string |
|
priceNote OptionalKineticOfferBand |
string |
|
guarantee OptionalKineticOfferBand |
string |
|
commitLabel OptionalKineticOfferBand |
string |
|
commitError OptionalKineticOfferBand |
string |
|
label OptionalKineticOfferBand |
string |
|
reassurance OptionalKineticOfferBand |
string |
|
href OptionalKineticOfferBand |
string |
|
onAction OptionalKineticOfferBand |
() => void |
|
disabled OptionalKineticOfferBand |
boolean |
|
state OptionalKineticOfferBand |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
copy OptionalKineticOfferBand |
{ pause?: string; play?: string; replay?: string } |
|
className OptionalKineticOfferBand |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
3defa86a43a9a212.webp
image/webp · 48.4 KB
-
8dba33b1863cc5a4.webp
image/webp · 99.6 KB
-
9dd966ae9bc06ebf.webp
image/webp · 127 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB