Objection Strike Ticker 1
Objection strike ticker: the reader's doubts in big type, struck out one by one as they reach the reading
Use it in a prompt
Use content/objection-strike-ticker 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/objection-strike-ticker.tsx. - Import it and pass your copy and images (Props tab):
import { ObjectionStrikeTicker } from "@/components/funneldna/content/objection-strike-ticker"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/objection-strike-ticker/component.tsx 276 lines
// layout: photo-overlap-card
// Objection strike ticker: the reader's doubts in big type, struck out one by one as they reach the reading
// line, each answered underneath, ending on the one belief left standing. Text-led, no button.
import React, { useEffect, useId, useRef, useState } from "react";
import { Divider, FX_HOST } from "../fx/fx";
import torn from "../fx/dividers/torn";
import { Mark } from "../marks/marks";
type DividerTone = React.ComponentProps<typeof Divider>["tone"];
export type ObjectionStrikeItem = {
/** The doubt, in the reader's own words; set big and struck out. */
objection: string;
/** Bold opening phrase of the answer. */
answerLead?: string;
/** Rest of the answer, in normal type. */
answer?: string;
};
export type ObjectionStrikeTickerProps = {
/** The line above the stack, e.g. "You might be thinking…". */
heading?: React.ReactNode;
/** 4–6 objections read best; each is struck as it reaches the reading line. */
objections?: ObjectionStrikeItem[];
/** The true belief: never struck, set larger, closes the block. */
truth?: React.ReactNode;
/** scene slot: the reader living the after-state; the card overlaps its edge. */
sceneImage?: string;
sceneAlt?: string;
/** object-position for the scene photo. */
scenePosition?: string;
/** Torn paper edge along the bottom of the band. */
tornEdge?: boolean;
/** Token of the section below, for the torn edge. */
edgeTone?: DividerTone;
/** "static" always renders the finished, struck composition. */
motion?: "scroll" | "static";
className?: string;
};
const DEFAULT_OBJECTIONS: ObjectionStrikeItem[] = [
{ objection: "I don't have time for this.", answerLead: "You don't need more hours.", answer: "You need a plan that fits the ones you already have." },
{ objection: "I've tried this before.", answerLead: "Not this way.", answer: "The same approach gets the same result. This is a different way in." },
{ objection: "I'm not sure it will work for me.", answerLead: "That's fair.", answer: "Start small, see it working, then decide." },
{ objection: "I'm not ready yet.", answerLead: "Ready comes later.", answer: "It shows up after you start, not before." },
];
export function ObjectionStrikeTicker({
heading = "You might be thinking…",
objections = DEFAULT_OBJECTIONS,
truth = "The only thing left is the first step.",
sceneImage,
sceneAlt = "",
scenePosition = "center 30%",
tornEdge = true,
edgeTone = "surface" as DividerTone,
motion = "scroll",
className,
}: ObjectionStrikeTickerProps) {
const headingId = useId();
const rootRef = useRef<HTMLElement>(null);
const endRef = useRef<HTMLSpanElement>(null);
const [live, setLive] = useState(false);
const [armed, setArmed] = useState(false);
const [reached, setReached] = useState<Record<number, boolean>>({});
const items = (objections ?? []).filter((item) => item && typeof item.objection === "string" && item.objection.trim() !== "");
const hasTruth = truth !== undefined && truth !== null && truth !== false && truth !== "";
const hasHeading = heading !== undefined && heading !== null && heading !== false && heading !== "";
const steps = items.length + (hasTruth ? 1 : 0);
const reach = (id: number) => setReached((prev) => (prev[id] ? prev : { ...prev, [id]: true }));
useEffect(() => {
const root = rootRef.current;
if (motion === "static" || !root || typeof window === "undefined" || !("IntersectionObserver" in window)) return;
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
if (mq.matches) return;
setReached({});
setLive(true);
const mark = (ids: number[]) => {
if (!ids.length) return;
setReached((prev) => {
const next = { ...prev };
for (const id of ids) next[id] = true;
return next;
});
};
const nodes = Array.from(root.querySelectorAll<HTMLElement>("[data-ost-step]"));
// The reading line sits at 62% of the viewport: a line is struck once its top crosses it.
const reader = new IntersectionObserver(
(entries) => {
const ids: number[] = [];
for (const entry of entries) {
if (entry.isIntersecting || entry.boundingClientRect.bottom < 0) {
ids.push(Number((entry.target as HTMLElement).dataset.ostStep));
reader.unobserve(entry.target);
}
}
mark(ids);
},
{ rootMargin: "0px 0px -38% 0px", threshold: 0 },
);
nodes.forEach((node) => reader.observe(node));
// If the block ends the page, the last lines may never reach the reading line: finish on arrival at the end.
const ender = new IntersectionObserver((entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
mark(nodes.map((node) => Number(node.dataset.ostStep)));
reader.disconnect();
ender.disconnect();
}
});
if (endRef.current) ender.observe(endRef.current);
let frame2 = 0;
const frame1 = requestAnimationFrame(() => {
frame2 = requestAnimationFrame(() => setArmed(true));
});
const onChange = () => {
if (mq.matches) {
reader.disconnect();
ender.disconnect();
setLive(false);
}
};
mq.addEventListener("change", onChange);
return () => {
cancelAnimationFrame(frame1);
cancelAnimationFrame(frame2);
reader.disconnect();
ender.disconnect();
mq.removeEventListener("change", onChange);
};
}, [motion, steps]);
const rootClass = ["cf-objection-strike-ticker", sceneImage ? "" : "cf-ost--solo", tornEdge ? "" : "cf-ost--flat", className]
.filter(Boolean)
.join(" ");
return (
<section
ref={rootRef}
className={rootClass}
style={FX_HOST}
data-live={live ? "true" : "false"}
data-armed={armed ? "true" : "false"}
aria-labelledby={hasHeading ? headingId : undefined}
>
<style>{CSS}</style>
<div className="cf-ost__blocks" aria-hidden="true">
<span className="cf-ost__band" />
<span className="cf-ost__slab" />
</div>
{tornEdge ? <Divider shape="torn" src={torn} tone={edgeTone} height={56} /> : null}
<div className="cf-ost__wrap">
{sceneImage ? (
<figure className="cf-ost__media">
<img src={sceneImage} alt={sceneAlt} loading="lazy" decoding="async" style={{ objectPosition: scenePosition }} />
</figure>
) : null}
<div className="cf-ost__card">
{hasHeading ? (
<h2 id={headingId} className="cf-ost__heading">
{heading}
</h2>
) : null}
{items.length ? (
<ul className="cf-ost__list">
{items.map((item, i) => {
const words = item.objection.trim().split(/\s+/);
const hasAnswer = Boolean(item.answerLead || item.answer);
return (
<li
key={`${i}-${item.objection}`}
className="cf-ost__item"
data-ost-step={i}
data-reached={reached[i] ? "true" : "false"}
style={{ "--n": words.length } as React.CSSProperties}
onPointerEnter={live ? (event) => { if (event.pointerType === "mouse") reach(i); } : undefined}
>
<p className="cf-ost__obj">
{words.map((word, j) => (
<span key={j} className="cf-ost__w" style={{ "--i": j } as React.CSSProperties}>
{word}
{j < words.length - 1 ? " " : null}
</span>
))}
</p>
{hasAnswer ? (
<p className="cf-ost__answer">
{item.answerLead ? <strong>{item.answerLead}</strong> : null}
{item.answerLead && item.answer ? " " : null}
{item.answer}
</p>
) : null}
</li>
);
})}
</ul>
) : null}
{hasTruth ? (
<div className="cf-ost__truth" data-ost-step={items.length} data-reached={reached[items.length] ? "true" : "false"}>
<span className="cf-ost__tick" aria-hidden="true">
<Mark name="check" width={64} height={64} />
</span>
{truth}
</div>
) : null}
</div>
</div>
<span ref={endRef} className="cf-ost__end" aria-hidden="true" />
</section>
);
}
export default ObjectionStrikeTicker;
const R = ".cf-objection-strike-ticker";
const EASE = "cubic-bezier(.2,.7,.2,1)";
const SHADOW = "var(--shadow, oklch(0.22 0.03 260))";
const CSS = `
${R}{position:relative;isolation:isolate;overflow:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(clamp(64px,8.5vw,120px) + 56px)}
${R}.cf-ost--flat{padding-bottom:clamp(64px,8.5vw,120px)}
${R} *,${R} *::before,${R} *::after{box-sizing:border-box}
${R} .cf-ost__blocks{position:absolute;inset:0;z-index:0;pointer-events:none}
${R} .cf-ost__band,${R} .cf-ost__slab{position:absolute;inset:0}
${R} .cf-ost__band{background:var(--band);clip-path:polygon(61% 0,100% 0,100% 100%,43% 100%)}
${R} .cf-ost__slab{background:var(--accent-fill,var(--accent));clip-path:polygon(56.5% 0,59.5% 0,41.5% 100%,38.5% 100%)}
${R}.cf-ost--solo .cf-ost__band{clip-path:polygon(70% 0,100% 0,100% 100%,52% 100%)}
${R}.cf-ost--solo .cf-ost__slab{clip-path:polygon(65.5% 0,68.5% 0,50.5% 100%,47.5% 100%)}
${R} .cf-ost__wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:start}
${R}.cf-ost--solo .cf-ost__wrap{grid-template-columns:minmax(0,1fr);max-width:860px}
${R} .cf-ost__media{grid-column:2;grid-row:1;position:sticky;top:clamp(16px,3vh,32px);margin:0;height:min(86vh,820px);min-height:420px;border-radius:12px;overflow:hidden;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
${R} .cf-ost__media img{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px}
${R} .cf-ost__card{grid-column:1;grid-row:1;position:relative;z-index:2;margin:clamp(48px,6vw,96px) calc(-1 * clamp(56px,7vw,112px)) 0 0;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from ${SHADOW} l c h / .22),0 12px 24px -8px oklch(from ${SHADOW} l c h / .32)));padding:clamp(24px,4.4vw,64px)}
${R}.cf-ost--solo .cf-ost__card{margin:0}
${R} .cf-ost__heading{margin:0 0 clamp(24px,3vw,40px);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}
${R} .cf-ost__list{list-style:none;margin:0;padding:0;display:grid;gap:clamp(32px,3.4vw,48px)}
${R} .cf-ost__item{margin:0}
${R} .cf-ost__obj{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.875rem,3.4vw,3rem);line-height:1.12;letter-spacing:var(--display-tracking,-.025em);color:var(--muted);text-wrap:balance}
${R} .cf-ost__w{position:relative;display:inline}
${R} .cf-ost__w::after{content:"";position:absolute;left:0;right:0;top:54%;height:max(3px,.09em);border-radius:.05em;background:var(--strike-ink,var(--accent));transform-origin:0 50%;transform:translateY(-50%) scaleX(1);pointer-events:none}
${R} .cf-ost__w:first-child::after{left:-.06em;border-radius:.08em .03em .03em .06em}
${R} .cf-ost__w:last-child::after{right:-.08em;border-radius:.03em .09em .06em .03em}
${R} .cf-ost__answer{margin:clamp(18px,1.8vw,24px) 0 0;max-width:56ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
${R} .cf-ost__answer strong{font-weight:800}
${R} .cf-ost__truth{margin:clamp(44px,5.4vw,72px) 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(2.25rem,4.8vw,4.25rem);line-height:1.04;letter-spacing:var(--display-tracking,-.025em);color:var(--ink);text-wrap:balance}
${R} .cf-ost__heading + .cf-ost__truth{margin-top:0}
${R} .cf-ost__tick{display:inline-block;width:.8em;height:.8em;margin-inline-end:.16em;vertical-align:-.08em;color:var(--success)}
${R} .cf-ost__tick svg{display:block;width:100%;height:100%}
${R} .cf-ost__end{position:absolute;left:0;bottom:0;width:1px;height:1px;pointer-events:none}
@media (prefers-reduced-motion: no-preference){
${R}[data-live="true"] .cf-ost__item[data-reached="false"] .cf-ost__obj{color:var(--ink)}
${R}[data-live="true"] .cf-ost__item[data-reached="false"] .cf-ost__w::after{transform:translateY(-50%) scaleX(0)}
${R}[data-live="true"] .cf-ost__item[data-reached="false"] .cf-ost__answer{opacity:0;transform:translateY(10px)}
${R}[data-live="true"] .cf-ost__truth[data-reached="false"] .cf-ost__tick{opacity:0;transform:scale(.9)}
${R}[data-armed="true"] .cf-ost__w::after{transition:transform .2s cubic-bezier(.35,.6,.3,1) calc(var(--i,0) * 70ms)}
${R}[data-armed="true"] .cf-ost__obj{transition:color .3s ease calc(var(--n,1) * 70ms)}
${R}[data-armed="true"] .cf-ost__answer{transition:opacity .45s ${EASE} calc(var(--n,1) * 70ms + 60ms),transform .45s ${EASE} calc(var(--n,1) * 70ms + 60ms)}
${R}[data-armed="true"] .cf-ost__tick{transition:opacity .3s ease .1s,transform .3s ${EASE} .1s}
}
@media (max-width:860px){
${R} .cf-ost__wrap{grid-template-columns:minmax(0,1fr)}
${R} .cf-ost__media{grid-column:1;grid-row:1;position:relative;top:auto;height:auto;min-height:0;aspect-ratio:4/3}
${R} .cf-ost__card{grid-column:1;grid-row:2;margin:-56px 8px 0}
${R}.cf-ost--solo .cf-ost__card{margin:0}
${R} .cf-ost__band{clip-path:polygon(0 0,100% 0,100% 240px,0 340px)}
${R} .cf-ost__slab{clip-path:polygon(0 358px,100% 258px,100% 272px,0 372px)}
${R}.cf-ost--solo .cf-ost__band{clip-path:polygon(0 0,100% 0,100% 120px,0 200px)}
${R}.cf-ost--solo .cf-ost__slab{clip-path:polygon(0 216px,100% 136px,100% 150px,0 230px)}
}
`;
pieces/content/objection-strike-ticker/specimen.tsx 48 lines
import __studioImagee78675fa from "../assets/2aeae64700f28096.webp";
// Specimen: Strong After Forty coaching (fictional): the doubts a first-time client brings, struck out one by one.
import { ObjectionStrikeTicker } from "../objection-strike-ticker";
import { slot } from "../../slots";
export const states = ["default"];
export default function ObjectionStrikeTickerSpecimen(_props: { state?: string }) {
return (
<ObjectionStrikeTicker
heading="You might be thinking…"
objections={[
{
objection: "I don't have time to train.",
answerLead: "You don't need a free afternoon.",
answer: "Each session is short and planned around your week, not the other way round.",
},
{
objection: "My knees can't take it anymore.",
answerLead: "Every move has a joint-friendly version.",
answer: "You train around what aches, never through it.",
},
{
objection: "I've tried gyms before and quit.",
answerLead: "This isn't a membership you forget about.",
answer: "Your coach checks in and adjusts the plan with you.",
},
{
objection: "I'm too out of shape to start.",
answerLead: "Week one meets you where you are.",
answer: "You begin with what your body can do today.",
},
{
objection: "I'm too old to get strong now.",
answerLead: "That's exactly who this is for.",
answer: "Strong After Forty is built for bodies that have lived a little.",
},
]}
truth="Your strongest years can still be ahead of you."
sceneImage={slot(
"scene",
__studioImagee78675fa,
)}
sceneAlt="A woman in her late forties training with a kettlebell in a bright home studio"
scenePosition="center 28%"
/>
);
}
| Name | Type | Details |
|---|---|---|
heading OptionalObjectionStrikeTicker |
React.ReactNode |
Default "You might be thinking…"
|
objections OptionalObjectionStrikeTicker |
ObjectionStrikeItem[] |
Default DEFAULT_OBJECTIONS
|
truth OptionalObjectionStrikeTicker |
React.ReactNode |
Default "The only thing left is the first step."
|
sceneImage OptionalObjectionStrikeTicker |
string |
|
sceneAlt OptionalObjectionStrikeTicker |
string |
Default ""
|
scenePosition OptionalObjectionStrikeTicker |
string |
Default "center 30%"
|
tornEdge OptionalObjectionStrikeTicker |
boolean |
Default true
|
edgeTone OptionalObjectionStrikeTicker |
DividerTone |
Default "surface" as DividerTone
|
motion OptionalObjectionStrikeTicker |
"scroll" | "static" |
Default "scroll"
|
className OptionalObjectionStrikeTicker |
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.
--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.
-
2aeae64700f28096.webp
image/webp · 53.8 KB
-
9a2ebdab5ff4fcc4.webp
image/webp · 3.64 KB