Kinetic Statement 1
Kinetic statement: one claim set as big as the screen allows, landing word by word with one marker stroke
Use it in a prompt
Use content/kinetic-statement 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-statement.tsx. - Import it and pass your copy and images (Props tab):
import { KineticStatement } from "@/components/funneldna/content/kinetic-statement"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/kinetic-statement/component.tsx 356 lines
// layout: quote-led
// Kinetic statement: one claim set as big as the screen allows, landing word by word with one marker stroke
// swiped behind its key word, so the scroll stops on the single belief the rest of the page needs the visitor to accept.
import React, { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
import type { CSSProperties } from "react";
import { BackdropVideo, FX_HOST } from "../fx/fx";
import dust from "../fx/loops/dust";
type Loop = React.ComponentProps<typeof BackdropVideo>["video"];
export type KineticStatementProps = {
/** The one claim, ideally 5 to 9 words. It sets the whole band. */
statement?: string;
/** One word from the statement, marked with one highlighter stroke behind it. Matched without case or punctuation. */
keyWord?: string;
/** Optional short line under the statement. Pass "" to leave it out. */
supporting?: React.ReactNode;
/** Presenter whose words these are (quote-led attribution). Empty by default. */
presenterName?: string;
presenterRole?: string;
/** presenter-cutout slot: a transparent head-and-shoulders cut-out. */
presenterImage?: string;
presenterAlt?: string;
/** Dark band (default) or light band. */
tone?: "dark" | "light";
/** Looping background (an fx loop module). null gives a plain band. */
backdrop?: Loop | null;
/** Heading level for the statement; one h1 per page. */
as?: "h1" | "h2" | "p";
className?: string;
};
const DEFAULT_STATEMENT = "You were never the problem. The plan was.";
const DEFAULT_KEY = "plan";
const DEFAULT_SUPPORT = "More effort won't fix a broken plan. A different vehicle will, and you're about to see it.";
const useIsoLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
export function KineticStatement(props: KineticStatementProps) {
const usingDefault = props.statement === undefined;
const text = (props.statement ?? DEFAULT_STATEMENT).trim();
const keyWord = props.keyWord ?? (usingDefault ? DEFAULT_KEY : "");
const supporting = props.supporting === undefined ? (usingDefault ? DEFAULT_SUPPORT : "") : props.supporting;
const {
presenterName = "",
presenterRole = "",
presenterImage = "",
presenterAlt,
tone = "dark",
backdrop = dust,
as = "h2",
className,
} = props;
const titleId = useId();
const titleRef = useRef<HTMLHeadingElement>(null);
const [phase, setPhase] = useState<"still" | "armed" | "in">("still");
// Readable first: the finished composition renders until we know motion is allowed,
// then words drop to their start pose (off screen) and land once when the line enters view.
useIsoLayoutEffect(() => {
const el = titleRef.current;
if (!el || typeof IntersectionObserver === "undefined") return;
const reduce = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
if (reduce) return;
setPhase("armed");
const io = new IntersectionObserver(
(entries) => {
if (entries.some((e) => e.isIntersecting)) {
setPhase("in");
io.disconnect();
}
},
{ threshold: 0.35 }
);
io.observe(el);
return () => io.disconnect();
}, []);
if (!text) return null;
const parts = text.split(/\s+/).map(splitWord);
const key = norm(keyWord);
const keyIndex = key ? parts.findIndex((p) => norm(p.core) === key) : -1;
const longest = Math.max(4, ...parts.map((p) => Array.from(p.raw).length));
const hasSupport = supporting !== "" && supporting !== null && supporting !== false;
const hasPresenter = Boolean(presenterImage || presenterName);
const vars = {
"--ks-chars": String(Math.max(8, Array.from(text).length)),
"--ks-long": String(longest),
"--ks-n": String(parts.length),
} as CSSProperties;
const Tag = as as "h2";
const classes = [
"cf-kinetic-statement",
`ks-tone-${tone}`,
phase !== "still" ? "is-armed" : "",
phase === "in" ? "is-in" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<section className={classes} style={FX_HOST} aria-labelledby={titleId}>
<style>{CSS}</style>
{backdrop ? <BackdropVideo video={backdrop} treatment={tone === "light" ? "scrim-light" : "scrim-dark"} /> : null}
<div className="ks-inner" style={vars}>
<Tag id={titleId} ref={titleRef} className="ks-title">
<span className="ks-sr">{text}</span>
<span className="ks-words" aria-hidden="true">
{parts.map((p, i) => (
<React.Fragment key={i}>
{i > 0 ? " " : null}
<span className="ks-word" style={{ "--i": String(i) } as CSSProperties}>
{i === keyIndex ? (
<>
{p.lead}
<span className="ks-key">{p.core}</span>
{p.trail}
</>
) : (
p.raw
)}
</span>
</React.Fragment>
))}
</span>
</Tag>
{hasSupport || hasPresenter ? (
<div className="ks-foot">
{hasSupport ? <p className="ks-support">{supporting}</p> : null}
{hasPresenter ? (
<div className="ks-by">
{presenterImage ? (
<img
className="ks-cutout"
src={presenterImage}
alt={presenterAlt ?? presenterName}
width={224}
height={224}
loading="lazy"
decoding="async"
/>
) : null}
{presenterName ? (
<p className="ks-person">
<span className="ks-name">{presenterName}</span>
{presenterRole ? <span className="ks-role">{presenterRole}</span> : null}
</p>
) : null}
</div>
) : null}
</div>
) : null}
</div>
</section>
);
}
export default KineticStatement;
type Part = { raw: string; lead: string; core: string; trail: string };
function isWordChar(ch: string) {
return ch.toLowerCase() !== ch.toUpperCase() || (ch >= "0" && ch <= "9");
}
function splitWord(raw: string): Part {
const chars = Array.from(raw);
let s = 0;
while (s < chars.length && !isWordChar(chars[s])) s++;
let e = chars.length;
while (e > s && !isWordChar(chars[e - 1])) e--;
return { raw, lead: chars.slice(0, s).join(""), core: chars.slice(s, e).join(""), trail: chars.slice(e).join("") };
}
function norm(s: string) {
return Array.from(s.toLowerCase()).filter(isWordChar).join("");
}
const CSS = `
.cf-kinetic-statement {
--ks-bg: var(--band, oklch(0.27 0.067 256));
--ks-ink: var(--band-ink, oklch(1 0 0));
--ks-soft: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 84%, var(--band, oklch(0.27 0.067 256)));
/* One highlighter stroke in the page's accent, translucent so the band shows through and the
band-ink letters stay readable on top under any theme. */
--ks-marker: oklch(from var(--accent-fill, var(--accent, oklch(0.5 0.17 257))) l c h / 0.6);
--ks-max: 7.25rem;
position: relative;
isolation: isolate;
overflow: hidden;
display: grid;
align-content: center;
/* Fits its content: a stage on wide screens, no empty band on phones. */
min-height: clamp(0px, 56vw, 780px);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(80px, 9vw, 128px);
background: var(--ks-bg);
color: var(--ks-ink);
font-family: var(--font-body, system-ui, sans-serif);
}
.cf-kinetic-statement.ks-tone-light {
--ks-bg: var(--surface, oklch(1 0 0));
--ks-ink: var(--ink, oklch(0.21 0.034 263));
--ks-soft: var(--muted, oklch(0.45 0.03 258));
--ks-marker: var(--marker, oklch(0.91 0.15 95 / 0.7));
}
.cf-kinetic-statement .ks-inner {
container: ks / inline-size;
position: relative;
z-index: 1;
width: 100%;
max-width: 1280px;
margin-inline: auto;
}
.cf-kinetic-statement .ks-title {
--ks-lines: 2.2;
margin: 0;
color: var(--ks-ink);
font-family: var(--font-display, var(--font-body, sans-serif));
font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none);
letter-spacing: calc(var(--display-tracking, -0.025em) - 0.015em);
line-height: 1.02;
/* Signature fit: the size comes from the claim's length and its longest word,
so every claim sets as a balanced 2-4 line block (3-5 on phones) that fills the column. */
font-size: min(
var(--ks-max),
calc(var(--ks-lines) * 100cqi / (var(--ks-chars) * 0.6)),
calc(100cqi / (var(--ks-long) * 0.74))
);
text-wrap: balance;
overflow-wrap: break-word;
hyphens: manual;
font-kerning: normal;
}
.cf-kinetic-statement .ks-word {
display: inline-block;
transform-origin: 50% 100%;
}
.cf-kinetic-statement .ks-key {
position: relative;
isolation: isolate;
display: inline-block;
color: var(--ks-ink);
}
/* One marker stroke on the word itself: sits low on the letters, slightly uneven ends, no fade. */
.cf-kinetic-statement .ks-key::before {
content: "";
position: absolute;
z-index: -1;
inset: 0.44em -0.07em 0.1em -0.05em;
border-radius: 0.06em 0.16em 0.1em 0.18em;
background: var(--ks-marker);
transform: rotate(-0.6deg);
transform-origin: left center;
}
.cf-kinetic-statement .ks-sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.cf-kinetic-statement .ks-foot {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 24px 48px;
margin-top: clamp(28px, 3.4vw, 48px);
}
.cf-kinetic-statement .ks-support {
flex: 1 1 22rem;
max-width: 46ch;
margin: 0;
color: var(--ks-soft);
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
font-weight: 500;
line-height: 1.4;
text-wrap: pretty;
}
.cf-kinetic-statement .ks-by {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 12px;
}
.cf-kinetic-statement .ks-cutout {
display: block;
width: clamp(88px, 8vw, 116px);
height: clamp(88px, 8vw, 116px);
object-fit: contain;
object-position: center bottom;
border-radius: 0;
filter: drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3));
}
.cf-kinetic-statement .ks-person {
margin: 0;
}
.cf-kinetic-statement .ks-name {
display: block;
color: var(--ks-ink);
font-size: 1.0625rem;
font-weight: 800;
line-height: 1.2;
}
.cf-kinetic-statement .ks-role {
display: block;
margin-top: 4px;
color: var(--ks-soft);
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.4;
}
@container ks (max-width: 640px) {
.cf-kinetic-statement .ks-title { --ks-lines: 4; }
.cf-kinetic-statement .ks-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
.cf-kinetic-statement .ks-support { flex-basis: auto; }
}
@media (prefers-reduced-motion: no-preference) {
.cf-kinetic-statement.is-armed .ks-word {
opacity: 0.14;
transform: translate3d(0, 0.34em, 0) scale(1.07);
}
.cf-kinetic-statement.is-armed .ks-key::before { transform: rotate(-0.6deg) scaleX(0); }
.cf-kinetic-statement.is-armed .ks-foot {
opacity: 0.14;
transform: translate3d(0, 12px, 0);
}
.cf-kinetic-statement.is-armed.is-in .ks-word {
opacity: 1;
transform: none;
transition: opacity 0.42s ease-out, transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
transition-delay: calc(var(--i, 0) * 85ms);
}
.cf-kinetic-statement.is-armed.is-in .ks-key::before {
transform: rotate(-0.6deg) scaleX(1);
transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--ks-n, 1) * 85ms + 80ms);
}
.cf-kinetic-statement.is-armed.is-in .ks-foot {
opacity: 1;
transform: none;
transition: opacity 0.45s ease-out calc(var(--ks-n, 1) * 85ms + 200ms),
transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--ks-n, 1) * 85ms + 200ms);
}
}
`;
pieces/content/kinetic-statement/specimen.tsx 22 lines
import __studioImagea935af7a from "../assets/741fff729cd358d1.webp";
import { KineticStatement } from "../kinetic-statement";
import { slot } from "../../slots";
export const states = ["default"];
export default function KineticStatementSpecimen(_props: { state?: string }) {
return (
<KineticStatement
statement="Your spreadsheet is lying to you."
keyWord="lying"
supporting="Broken formulas and forgotten subscriptions hide where your money really goes. Tallywise shows you the real number."
presenterName="Maya Ellison"
presenterRole="Founder, Tallywise"
presenterImage={slot(
"presenter-cutout",
__studioImagea935af7a
)}
presenterAlt="Maya Ellison, founder of Tallywise"
/>
);
}
| Name | Type | Details |
|---|---|---|
statement OptionalKineticStatement |
string |
|
keyWord OptionalKineticStatement |
string |
|
supporting OptionalKineticStatement |
React.ReactNode |
|
presenterName OptionalKineticStatement |
string |
|
presenterRole OptionalKineticStatement |
string |
|
presenterImage OptionalKineticStatement |
string |
|
presenterAlt OptionalKineticStatement |
string |
|
tone OptionalKineticStatement |
"dark" | "light" |
|
backdrop OptionalKineticStatement |
Loop | null |
|
as OptionalKineticStatement |
"h1" | "h2" | "p" |
|
className OptionalKineticStatement |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter-cutout- The presenter on a transparent background.
- 29ef5dd0aa81d9d1.mp4 video/mp4 · 84 KB
- 46bc23060d7f0510.webm video/webm · 32.1 KB
-
741fff729cd358d1.webp
image/webp · 135 KB
-
f5e176ebf0632936.webp
image/webp · 9.96 KB