Scene Kinetic Lines Hero 1
Kinetic-type hero: giant headline lines sweep across a living scene photo like a title sequence, lock into the promise, then the question, the value ledger and a huge button land as the final beat.
Use it in a prompt
Use hero/scene-kinetic-lines-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/hero/scene-kinetic-lines-hero.tsx. - Import it and pass your copy and images (Props tab):
import { SceneKineticLinesHero } from "@/components/funneldna/hero/scene-kinetic-lines-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/scene-kinetic-lines-hero/component.tsx 494 lines
// layout: diagonal-split
// Kinetic-type hero: giant headline lines sweep across a living scene photo like a title sequence, lock into the promise, then the question, the value ledger and a huge button land as the final beat.
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
import { Pause, Play, RotateCcw, ShieldCheck } from "lucide-react";
import { Divider, FX_HOST, Texture } from "../fx/fx";
import leak from "../fx/textures/leak";
export type SceneKineticLinesHeroItem = { name: string; value: string };
export type SceneKineticLinesHeroProps = {
// The headline, one string per kinetic line (three long lines play best).
lines?: string[];
// Index of the line set in the action tint; null for none. Defaults to the last line.
emphasisLine?: number | null;
// The question the button answers, set as a red sales-letter subhead.
question?: string;
lead?: string;
// Button label, written as the reader's answer to the question.
label?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
// Guarantee line under the button, shown with a shield icon.
guarantee?: string;
// Short reassurance line under the button.
note?: string;
// Scene photo (image slot: scene).
sceneImage?: string;
sceneImageAlt?: string;
// object-position of the scene photo.
scenePosition?: string;
ledgerTitle?: string;
ledgerItems?: SceneKineticLinesHeroItem[];
totalLabel?: string;
// The supplied regular value; never computed from the items.
totalValue?: string;
todayLabel?: string;
price?: string;
priceNote?: string;
// Accessible labels for the motion controls.
copy?: { controls?: string; pause?: string; play?: string; replay?: string };
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
type SequenceAnimation = Animation & { animationName?: string };
export function SceneKineticLinesHero(props: SceneKineticLinesHeroProps) {
const {
lines = DEFAULT_LINES,
emphasisLine,
question = "Ready to map your first funnel?",
lead = "Plan your funnel, write your page copy, and check every step before you launch.",
label = "I'm ready, show me how",
href,
onAction,
disabled = false,
guarantee,
note,
sceneImage,
sceneImageAlt = "",
scenePosition = "50% 45%",
ledgerTitle = "Everything you walk away with",
ledgerItems = [],
totalLabel = "Total value",
totalValue,
todayLabel = "Yours today",
price,
priceNote,
copy,
state = "default",
className,
} = props;
const text = { ...DEFAULT_COPY, ...copy };
const shown = lines.filter((line) => typeof line === "string" && line.trim() !== "");
const count = shown.length;
const emphasis = emphasisLine === null ? -1 : emphasisLine ?? count - 1;
const lastDelay = count > 1 ? (count - 1) * 0.16 + 0.42 : 0.1;
const settle = lastDelay + 0.75;
const isDisabled = disabled || state === "disabled";
const hasRows = ledgerItems.length > 0 || Boolean(totalValue);
const hasLedger = hasRows || Boolean(price);
const hasNote = Boolean(note) || Boolean(guarantee);
const rootRef = useRef<HTMLElement>(null);
const held = useRef(false);
const [live, setLive] = useState(false);
const [playing, setPlaying] = useState(false);
const [ended, setEnded] = useState(false);
const sequence = useCallback((): Animation[] => {
const el = rootRef.current;
if (!el || typeof el.getAnimations !== "function") return [];
return el
.getAnimations({ subtree: true })
.filter((a) => String((a as SequenceAnimation).animationName ?? "").startsWith("cf-kl-"));
}, []);
// The sequence only exists while data-run is set; without it the block is its finished, static composition.
const start = useCallback(() => {
const el = rootRef.current;
if (!el) return;
el.removeAttribute("data-run");
void el.offsetWidth;
el.setAttribute("data-run", "true");
held.current = false;
setEnded(false);
setPlaying(true);
}, []);
const reset = useCallback(() => {
const el = rootRef.current;
if (!el) return;
el.removeAttribute("data-run");
held.current = false;
setPlaying(false);
setEnded(false);
}, []);
const hold = useCallback(() => {
for (const a of sequence()) if (a.playState === "running") a.pause();
held.current = true;
setPlaying(false);
}, [sequence]);
const resume = useCallback(() => {
let started = false;
for (const a of sequence()) {
if (a.playState === "paused") {
a.play();
started = true;
}
}
held.current = false;
if (started) setPlaying(true);
}, [sequence]);
const toggle = useCallback(() => {
if (playing) hold();
else resume();
}, [playing, hold, resume]);
const onAnimationEnd = useCallback(() => {
const list = sequence();
if (list.length > 0 && list.every((a) => a.playState === "finished")) {
setPlaying(false);
setEnded(true);
}
}, [sequence]);
// Motion is opt-in: no JS, no IntersectionObserver or reduced motion keeps the finished composition.
useIsoLayoutEffect(() => {
const el = rootRef.current;
if (typeof window === "undefined" || !el || !("IntersectionObserver" in window) || typeof el.getAnimations !== "function") return;
const query = typeof window.matchMedia === "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
const sync = () => setLive(!(query && query.matches));
sync();
query?.addEventListener?.("change", sync);
return () => query?.removeEventListener?.("change", sync);
}, []);
// Plays once when the block enters view (immediately if it is already in view), resets when it leaves, replays on return.
useIsoLayoutEffect(() => {
const el = rootRef.current;
if (!el) return;
if (!live) {
el.removeAttribute("data-run");
setPlaying(false);
return;
}
const box = el.getBoundingClientRect();
const view = window.innerHeight || document.documentElement.clientHeight || 0;
if (box.bottom > 0 && box.top < view * 0.85) start();
const observer = new IntersectionObserver(
(entries) => {
const entry = entries[entries.length - 1];
if (!entry) return;
const running = el.getAttribute("data-run") === "true";
if (entry.isIntersecting) {
if (!running) start();
} else if (running) {
reset();
}
},
{ threshold: 0, rootMargin: "0px 0px -15% 0px" },
);
observer.observe(el);
return () => {
observer.disconnect();
el.removeAttribute("data-run");
};
}, [live, start, reset]);
const rootStyle = { ...FX_HOST, ["--kl-t" as string]: `${settle.toFixed(2)}s` } as React.CSSProperties;
const action = label ? (
href && !isDisabled ? (
<a className="kl-btn" href={href} data-state={state} onClick={onAction}>
{label}
</a>
) : (
<button type="button" className="kl-btn" data-state={state} disabled={isDisabled} onClick={onAction}>
{label}
</button>
)
) : null;
return (
<section
ref={rootRef}
className={["cf-scene-kinetic-lines-hero", hasLedger ? null : "kl-solo", className].filter(Boolean).join(" ")}
style={rootStyle}
onAnimationEnd={onAnimationEnd}
>
<style>{CSS}</style>
<div className="kl-stage">
{sceneImage ? (
<>
<div className="kl-photo">
<img
className="kl-img"
src={sceneImage}
alt={sceneImageAlt}
aria-hidden={sceneImageAlt ? undefined : true}
loading="eager"
decoding="async"
style={{ objectPosition: scenePosition }}
/>
</div>
<div className="kl-scrim" aria-hidden="true" />
</>
) : null}
<div className="kl-leak" aria-hidden="true">
<Texture src={leak} tone="accent-fill" />
<span className="kl-beam" />
</div>
{live ? (
<div className="kl-controls" role="group" aria-label={text.controls}>
{ended ? null : (
<button type="button" className="kl-ctl" onClick={toggle} aria-label={playing ? text.pause : text.play}>
{playing ? <Pause size={18} strokeWidth={2.5} aria-hidden="true" /> : <Play size={18} strokeWidth={2.5} aria-hidden="true" />}
</button>
)}
<button type="button" className="kl-ctl" onClick={start} aria-label={text.replay}>
<RotateCcw size={18} strokeWidth={2.5} aria-hidden="true" />
</button>
</div>
) : null}
{count > 0 ? (
<div className="kl-inner kl-head">
<h1 className="kl-h1">
{shown.map((line, i) => {
const last = i === count - 1;
const kind = last ? "slam" : i % 2 === 0 ? "right" : "left";
const delay = last ? lastDelay : i * 0.16;
return (
<React.Fragment key={`${line}-${i}`}>
<span
className="kl-line"
data-emph={i === emphasis ? "true" : undefined}
style={{ ["--kl-d" as string]: `${delay.toFixed(2)}s` } as React.CSSProperties}
>
<span className={`kl-word kl-word--${kind}`}>{line}</span>
<span className="kl-ghost" aria-hidden="true">
{line}
</span>
</span>
{last ? null : " "}
</React.Fragment>
);
})}
</h1>
</div>
) : null}
</div>
<div className="kl-deck">
<div className="kl-deck-accent" aria-hidden="true" />
<div className="kl-deck-band" aria-hidden="true" />
<div className="kl-inner kl-grid">
{question ? <h2 className="kl-q">{question}</h2> : null}
{lead ? <p className="kl-lead">{lead}</p> : null}
{hasLedger ? (
<div className="kl-ledger-wrap">
<div className="kl-ledger">
{ledgerTitle ? <h3 className="kl-ledger-title">{ledgerTitle}</h3> : null}
{hasRows ? (
<ul className="kl-rows">
{ledgerItems.map((item, i) => (
<li className="kl-row" key={`${item.name}-${i}`}>
<span className="kl-row-name">{item.name}</span>
<span className="kl-leader" aria-hidden="true" />
<span className="kl-row-value">{item.value}</span>
</li>
))}
{totalValue ? (
<li className="kl-row kl-row--total">
<span className="kl-row-name">{totalLabel}</span>
<span className="kl-leader" aria-hidden="true" />
<span className="kl-row-value">{totalValue}</span>
</li>
) : null}
</ul>
) : null}
{price ? (
<div className="kl-today">
<p className="kl-today-copy">
<span className="kl-today-label">{todayLabel}</span>
{priceNote ? <span className="kl-today-note">{priceNote}</span> : null}
</p>
<p className="kl-price">{price}</p>
</div>
) : null}
</div>
</div>
) : null}
{action || hasNote ? (
<div className="kl-act">
{action ? <span className="kl-land">{action}</span> : null}
{hasNote ? (
<p className="kl-note">
{guarantee ? (
<span>
<ShieldCheck className="kl-note-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{guarantee}
</span>
) : null}
{guarantee && note ? <span aria-hidden="true"> · </span> : null}
{note ? <span>{note}</span> : null}
</p>
) : null}
</div>
) : null}
</div>
</div>
<div className="kl-edge" aria-hidden="true">
<Divider shape="wave" tone="surface" height={56} />
</div>
</section>
);
}
export default SceneKineticLinesHero;
const useIsoLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
const DEFAULT_LINES = ["Build your first", "funnel with", "a clear plan."];
const DEFAULT_COPY = {
controls: "Headline animation",
pause: "Pause animation",
play: "Play animation",
replay: "Replay animation",
};
const R = ".cf-scene-kinetic-lines-hero";
const CSS = `
${R}{
--kl-gutter:clamp(16px,5vw,48px);
--kl-wide:1320px;
--kl-pad:clamp(48px,7vw,96px);
--kl-tilt:clamp(48px,9vw,140px);
--kl-stripe:clamp(10px,1.2vw,18px);
--kl-ease:cubic-bezier(.2,.7,.2,1);
--kl-shadow:var(--shadow,oklch(0.22 0.03 260));
--kl-emph:color-mix(in oklab,var(--cta) 55%,var(--band-ink));
--kl-red-card:color-mix(in oklab,var(--cta) 55%,var(--ink));
position:relative;isolation:isolate;overflow-x:clip;
background:var(--band);color:var(--band-ink);font-family:var(--font-body);
}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box;}
${R} .kl-inner{position:relative;inline-size:100%;max-inline-size:var(--kl-wide);margin-inline:auto;padding-inline:var(--kl-gutter);min-inline-size:0;}
${R} .kl-stage{position:relative;isolation:isolate;overflow:hidden;overflow:clip;display:flex;flex-direction:column;justify-content:flex-end;padding-block:max(var(--kl-pad),64px) calc(var(--kl-tilt) + clamp(24px,3vw,40px));background:var(--band);}
${R} .kl-photo{position:absolute;inset:0;z-index:0;transform-origin:60% 42%;}
${R} .kl-img{display:block;inline-size:100%;block-size:100%;object-fit:cover;}
${R} .kl-scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,oklch(from var(--band) l c h / .6) 0%,oklch(from var(--band) l c h / .76) 42%,oklch(from var(--band) l c h / .9) 100%);}
${R} .kl-leak{position:absolute;inset-block:-10%;inset-inline-start:0;inline-size:62%;z-index:1;opacity:0;pointer-events:none;mix-blend-mode:screen;}
${R} .kl-beam{position:absolute;inset:0;background:linear-gradient(100deg,transparent 8%,oklch(from var(--accent-fill,var(--accent)) calc(l + .1) c h / .36) 36%,oklch(from var(--accent-fill,var(--accent)) calc(l + .22) c h / .56) 52%,oklch(from var(--accent-fill,var(--accent)) calc(l + .1) c h / .3) 66%,transparent 92%);}
${R} .kl-controls{position:absolute;z-index:3;inset-block-start:clamp(10px,1.6vw,20px);inset-inline-end:var(--kl-gutter);display:flex;gap:8px;}
${R} .kl-ctl{display:inline-grid;place-items:center;inline-size:44px;block-size:44px;padding:0;border-radius:999px;border:1px solid oklch(from var(--band-ink) l c h / .3);background:oklch(from var(--band) l c h / .62);color:var(--band-ink);cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease;}
${R} .kl-ctl:hover{background:oklch(from var(--band) calc(l - .04) c h / .9);border-color:oklch(from var(--band-ink) l c h / .55);}
${R} .kl-ctl:active{transform:scale(.95);}
${R} .kl-ctl:focus-visible{outline:3px solid var(--band-ink);outline-offset:2px;}
${R} .kl-head{z-index:2;container-type:inline-size;}
${R} .kl-h1{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.03em);font-size:clamp(2.5rem,8.8cqi,8.25rem);line-height:.98;color:var(--band-ink);text-wrap:balance;overflow-wrap:anywhere;hyphens:auto;text-shadow:0 2px 3px oklch(from var(--kl-shadow) l c h / .45);}
${R} .kl-line{display:block;position:relative;min-inline-size:0;}
${R} .kl-line + .kl-line{margin-block-start:.03em;}
${R} .kl-word{display:inline-block;max-inline-size:100%;text-wrap:balance;transform-origin:0 60%;}
${R} .kl-line[data-emph=true] .kl-word{color:var(--kl-emph);}
${R} .kl-ghost{position:absolute;inset:0;display:none;color:transparent;-webkit-text-stroke:1.5px oklch(from var(--band-ink) l c h / .55);text-shadow:none;text-wrap:balance;opacity:0;pointer-events:none;}
@container (max-width: 560px){
${R} .kl-h1{font-size:clamp(2.25rem,12.6cqi,3.75rem);line-height:1;}
${R} .kl-ghost{-webkit-text-stroke-width:1px;}
}
${R} .kl-deck{position:relative;z-index:1;padding-block:clamp(24px,3vw,40px) calc(var(--kl-pad) + 56px);}
${R} .kl-deck-accent,${R} .kl-deck-band{position:absolute;inset-inline:0;inset-block-end:0;pointer-events:none;clip-path:polygon(0 var(--kl-tilt),100% 0,100% 100%,0 100%);}
${R} .kl-deck-accent{inset-block-start:calc(-1 * (var(--kl-tilt) + var(--kl-stripe)));background:var(--accent-fill,var(--accent));transform-origin:0 50%;}
${R} .kl-deck-band{inset-block-start:calc(-1 * var(--kl-tilt));background:var(--band);}
${R} .kl-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'q' 'lead' 'ledger' 'act';align-items:start;}
${R} .kl-q{grid-area:q;min-inline-size:0;margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--kl-emph);text-wrap:balance;}
${R} .kl-lead{grid-area:lead;min-inline-size:0;max-inline-size:60ch;margin:0 0 28px;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--band-ink);text-wrap:pretty;}
${R} .kl-act{grid-area:act;min-inline-size:0;display:flex;flex-direction:column;align-items:flex-start;gap:14px;}
${R} .kl-land{display:inline-block;max-inline-size:100%;}
${R} .kl-note{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--band-ink);text-wrap:pretty;}
${R} .kl-note-icon{display:inline-block;vertical-align:-0.18em;margin-inline-end:.4em;}
${R} .kl-btn{--kl-b:var(--button-bg,var(--cta));--kl-b2:var(--button-bg-2,var(--cta-2));position:relative;display:inline-flex;align-items:center;justify-content:center;min-block-size:76px;max-inline-size:100%;padding:14px clamp(28px,3.2vw,44px);border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(180deg,oklch(from var(--kl-b) calc(l + .04) c h),oklch(from var(--kl-b2) 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.25rem,1.9vw,1.625rem);line-height:1.15;letter-spacing:-0.005em;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--kl-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--kl-b) calc(l - .16) c h),0 1px 2px oklch(from var(--kl-shadow) l c h / .45),0 10px 18px -6px oklch(from var(--kl-shadow) l c h / .55));transition:transform .16s ease,box-shadow .16s ease,background .16s ease;}
${R} .kl-btn:hover:not(:disabled),${R} .kl-btn[data-state=hover]:not(:disabled){background:linear-gradient(180deg,oklch(from var(--kl-b) calc(l - .01) c h),oklch(from var(--kl-b2) calc(l - .07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--kl-b) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--kl-b) calc(l - .2) c h),0 1px 2px oklch(from var(--kl-shadow) l c h / .5),0 14px 22px -8px oklch(from var(--kl-shadow) l c h / .62);}
${R} .kl-btn:active:not(:disabled),${R} .kl-btn[data-state=active]:not(:disabled){transform:translateY(1px);background:linear-gradient(180deg,oklch(from var(--kl-b) calc(l - .05) c h),oklch(from var(--kl-b2) calc(l - .09) c h));box-shadow:inset 0 2px 5px oklch(from var(--kl-b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--kl-b) calc(l - .16) c h),0 1px 1px oklch(from var(--kl-shadow) l c h / .4);}
${R} .kl-btn:focus-visible{outline:3px solid var(--band-ink);outline-offset:4px;}
${R} .kl-btn:disabled,${R} .kl-btn[data-state=disabled]{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none;}
${R} .kl-ledger-wrap{grid-area:ledger;min-inline-size:0;max-inline-size:36rem;margin:0 0 28px;}
${R} .kl-ledger{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(--kl-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--kl-shadow) l c h / .32)));padding:clamp(20px,3vw,32px);}
${R} .kl-ledger-title{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--kl-red-card);text-wrap:balance;}
${R} .kl-rows{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
${R} .kl-row{display:flex;align-items:baseline;gap:10px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;color:var(--ink);}
${R} .kl-row-name{min-inline-size:0;overflow-wrap:anywhere;text-wrap:pretty;}
${R} .kl-leader{flex:1 1 24px;min-inline-size:16px;border-block-end:1px solid oklch(from var(--ink) l c h / .2);transform:translateY(-.3em);}
${R} .kl-row-value{flex:none;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;}
${R} .kl-row--total{margin-block-start:6px;font-weight:800;}
${R} .kl-row--total .kl-row-value{font-weight:800;}
${R} .kl-today{margin-block-start:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;padding:16px 18px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));}
${R} .kl-ledger-title + .kl-today{margin-block-start:0;}
${R} .kl-today-copy{margin:0;min-inline-size:0;}
${R} .kl-today-label{display:block;font-size:.9375rem;line-height:1.35;font-weight:700;color:var(--ink);text-wrap:pretty;}
${R} .kl-today-note{display:block;margin-block-start:4px;font-size:.9375rem;line-height:1.35;font-weight:500;color:var(--muted);text-wrap:pretty;}
${R} .kl-price{margin:0;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:-0.03em;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;}
${R} .kl-edge{position:absolute;inset-inline:0;inset-block-end:0;z-index:2;block-size:56px;pointer-events:none;line-height:0;}
@media (min-width: 960px){
${R} .kl-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-rows:auto auto 1fr;grid-template-areas:'q ledger' 'lead ledger' 'act ledger';column-gap:clamp(40px,5vw,80px);}
${R}.kl-solo .kl-grid{grid-template-columns:minmax(0,50rem);grid-template-rows:auto;grid-template-areas:'q' 'lead' 'act';}
${R} .kl-ledger-wrap{max-inline-size:none;margin:calc(var(--kl-tilt) * -0.55) 0 0;}
}
@media (max-width: 640px){
${R} .kl-act{align-items:stretch;}
${R} .kl-land{display:block;inline-size:100%;}
${R} .kl-btn{inline-size:100%;min-block-size:68px;padding-inline:20px;}
}
@keyframes cf-kl-push{from{transform:scale(1.02)}to{transform:scale(1.16)}}
@keyframes cf-kl-l0{0%{transform:translateX(58%);opacity:0}10%{opacity:1}82%{transform:translateX(-3%)}100%{transform:none;opacity:1}}
@keyframes cf-kl-l1{0%{transform:translateX(-62%);opacity:0}10%{opacity:1}84%{transform:translateX(2.5%)}100%{transform:none;opacity:1}}
@keyframes cf-kl-l2{0%{transform:translateX(18%) scale(1.22);clip-path:inset(0 100% 0 0)}62%{transform:translateX(-1%) scale(1.03);clip-path:inset(0 0 0 0)}100%{transform:none;clip-path:inset(0 0 0 0)}}
@keyframes cf-kl-v0{0%{transform:translateY(-115%);opacity:0}20%{opacity:1}80%{transform:translateY(4%)}100%{transform:none;opacity:1}}
@keyframes cf-kl-v1{0%{transform:translateY(115%);opacity:0}20%{opacity:1}80%{transform:translateY(-4%)}100%{transform:none;opacity:1}}
@keyframes cf-kl-v2{0%{transform:translateY(40%) scale(1.12);clip-path:inset(100% 0 0 0)}62%{transform:translateY(-2%) scale(1.02);clip-path:inset(0 0 0 0)}100%{transform:none;clip-path:inset(0 0 0 0)}}
@keyframes cf-kl-gl{0%{transform:translateX(105%);opacity:0}18%{opacity:.9}80%{opacity:.5}100%{transform:translateX(-115%);opacity:0}}
@keyframes cf-kl-gr{0%{transform:translateX(-105%);opacity:0}18%{opacity:.9}80%{opacity:.5}100%{transform:translateX(115%);opacity:0}}
@keyframes cf-kl-wipe{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cf-kl-leak{0%{transform:translateX(-120%) skewX(-14deg);opacity:0}20%{opacity:1}75%{opacity:.85}100%{transform:translateX(170%) skewX(-14deg);opacity:0}}
@keyframes cf-kl-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes cf-kl-card{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@keyframes cf-kl-land{0%{opacity:0;transform:translateY(-18px) scale(1.3)}45%{opacity:1;transform:translateY(3px) scale(.96)}72%{transform:translateY(-1px) scale(1.02)}100%{opacity:1;transform:none}}
@media screen and (prefers-reduced-motion: no-preference){
${R}[data-run=true] .kl-ghost{display:block;}
${R}[data-run=true] .kl-photo{animation:cf-kl-push 16s cubic-bezier(.33,0,.4,1) both;}
${R}[data-run=true] .kl-word--right{animation:cf-kl-l0 1s cubic-bezier(.2,.75,.25,1) var(--kl-d) both;}
${R}[data-run=true] .kl-word--left{animation:cf-kl-l1 1.1s cubic-bezier(.2,.75,.25,1) var(--kl-d) both;}
${R}[data-run=true] .kl-word--slam{animation:cf-kl-l2 .75s cubic-bezier(.2,.9,.2,1) var(--kl-d) both;}
${R}[data-run=true] .kl-line:nth-child(odd) .kl-ghost{animation:cf-kl-gl .95s cubic-bezier(.35,.2,.45,1) calc(var(--kl-d) + .05s) both;}
${R}[data-run=true] .kl-line:nth-child(even) .kl-ghost{animation:cf-kl-gr 1.05s cubic-bezier(.35,.2,.45,1) calc(var(--kl-d) + .05s) both;}
${R}[data-run=true] .kl-deck-accent{animation:cf-kl-wipe .45s cubic-bezier(.16,.9,.24,1) calc(var(--kl-t) - .05s) both;}
${R}[data-run=true] .kl-leak{animation:cf-kl-leak 1.2s cubic-bezier(.4,.1,.3,1) calc(var(--kl-t) - .05s) both;}
${R}[data-run=true] .kl-q{animation:cf-kl-rise .45s var(--kl-ease) calc(var(--kl-t) + .2s) both;}
${R}[data-run=true] .kl-lead{animation:cf-kl-rise .45s var(--kl-ease) calc(var(--kl-t) + .32s) both;}
${R}[data-run=true] .kl-ledger-wrap{animation:cf-kl-card .5s var(--kl-ease) calc(var(--kl-t) + .46s) both;}
${R}[data-run=true] .kl-land{animation:cf-kl-land .6s cubic-bezier(.2,.8,.3,1) calc(var(--kl-t) + .7s) both;}
${R}[data-run=true] .kl-note{animation:cf-kl-rise .4s var(--kl-ease) calc(var(--kl-t) + 1.05s) both;}
@container (max-width: 560px){
${R}[data-run=true] .kl-word--right{animation-name:cf-kl-v0;}
${R}[data-run=true] .kl-word--left{animation-name:cf-kl-v1;}
${R}[data-run=true] .kl-word--slam{animation-name:cf-kl-v2;}
}
}
@media (prefers-reduced-motion: reduce){
${R} .kl-controls{display:none;}
${R} .kl-btn,${R} .kl-ctl{transition:none;}
${R} .kl-btn:hover,${R} .kl-btn[data-state=hover]{transform:none;}
}
@media print{
${R} .kl-controls{display:none;}
}
`;
pieces/hero/scene-kinetic-lines-hero/specimen.tsx 36 lines
import __studioImage8aa34bfc from "../assets/f09c3ecc4b716a12.webp";
import { SceneKineticLinesHero } from "../scene-kinetic-lines-hero";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"] as const;
type SpecimenState = (typeof states)[number];
export default function SceneKineticLinesHeroSpecimen({ state = "default" }: { state?: SpecimenState }) {
const s = defaults.sample;
return (
<SceneKineticLinesHero
state={state}
lines={["Fill every rack", "before the doors", "open at seven."]}
question="Ready to bake at scale without a night shift?"
lead="Sourdough at Scale is a live masterclass on the bake-day schedule: when to mix, when to shape and how to stagger the ovens so a small crew fills every rack by opening."
label="I'm ready, save my seat"
guarantee={s.guarantee}
note={s.note}
sceneImage={slot("scene", __studioImage8aa34bfc)}
sceneImageAlt="Bakers shaping sourdough loaves beside a steaming oven during a busy morning bake"
scenePosition="50% 40%"
ledgerTitle="Everything you'll bake with"
ledgerItems={[
{ name: "Bake-Day Production Guide", value: s.items[0].value },
{ name: "Dough Schedule Workbook", value: s.items[1].value },
{ name: "Opening-Rush Checklist", value: s.items[2].value },
]}
totalLabel="Total value"
totalValue={s.regularPrice}
todayLabel="The masterclass and all three, today"
price={s.price}
/>
);
}
| Name | Type | Details |
|---|---|---|
lines OptionalSceneKineticLinesHero |
string[] |
|
emphasisLine OptionalSceneKineticLinesHero |
number | null |
|
question OptionalSceneKineticLinesHero |
string |
|
lead OptionalSceneKineticLinesHero |
string |
|
label OptionalSceneKineticLinesHero |
string |
|
href OptionalSceneKineticLinesHero |
string |
|
onAction OptionalSceneKineticLinesHero |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalSceneKineticLinesHero |
boolean |
|
guarantee OptionalSceneKineticLinesHero |
string |
|
note OptionalSceneKineticLinesHero |
string |
|
sceneImage OptionalSceneKineticLinesHero |
string |
|
sceneImageAlt OptionalSceneKineticLinesHero |
string |
|
scenePosition OptionalSceneKineticLinesHero |
string |
|
ledgerTitle OptionalSceneKineticLinesHero |
string |
|
ledgerItems OptionalSceneKineticLinesHero |
SceneKineticLinesHeroItem[] |
|
totalLabel OptionalSceneKineticLinesHero |
string |
|
totalValue OptionalSceneKineticLinesHero |
string |
|
todayLabel OptionalSceneKineticLinesHero |
string |
|
price OptionalSceneKineticLinesHero |
string |
|
priceNote OptionalSceneKineticLinesHero |
string |
|
copy OptionalSceneKineticLinesHero |
{ controls?: string; pause?: string; play?: string; replay?: string } |
|
state OptionalSceneKineticLinesHero |
"default" | "hover" | "active" | "disabled" |
|
className OptionalSceneKineticLinesHero |
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.
--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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
986367d82c360c9a.webp
image/webp · 102 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f09c3ecc4b716a12.webp
image/webp · 83.6 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB