Skip to content

No.367 · CTAs

Cascade Pitch CTA

A closing pitch that fits whoever is reading: pick 'designer', 'founder' or 'engineer' and the headline, the line under it and the button turn over letter by letter to new copy.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Night

Build a closing CTA with a small segmented choice above it — 'I'm a designer | founder | engineer' in a pill — and three versions of the pitch (headline, one line, button label). Choosing a role rewrites all three in place, letter by letter, like a departures board. Render each string as reels: one inline-block per character, exactly one line tall with overflow hidden, holding a two-row strip — the previous text's character at that index on top and the new character beneath. On change, every reel whose character differs plays a 620ms expo-out roll from translateY(0) to −50%, delayed by its index (11ms per letter in the headline, 4ms in the paragraph, 18ms on the button) so the change sweeps left to right. Unchanged letters stay still. Group the reels into the new text's words (nowrap) so lines only break at spaces; extra letters from a longer old string roll away out of flow. The roles are a radiogroup with roving tabindex and arrow keys. Each animated string is aria-hidden with the real text beside it in a visually hidden span, and a polite live region announces the new headline. Selected variant — Night (night): Palette for this theme (Night): --cpc-accent #c8b9ea; --cpc-chip #1a181e; --cpc-ink #efe8dc; --cpc-line rgb(239 232 220 / 0.14); --cpc-muted #9c96a1; --cpc-on #efe8dc; --cpc-on-ink #141216; --cpc-page #0b0a0d. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "night". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Choose a role with a click or the arrow keys; the pitch turns over to match. Motion: Each changed letter rolls in 620ms, staggered by position; the whole headline lands within about a second. Accessibility: Real heading, paragraph and link carry the current text for screen readers; the reels are aria-hidden. The role picker is a labelled radiogroup, and the new headline is announced politely. Reduced motion swaps the text instantly. Responsive behavior: Fluid type with clamp(); words wrap only at spaces, so mid-word breaks can't happen during a roll. Touch: Tap a role; everything else is the same. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Choose a role with a click or the arrow keys; the pitch turns over to match.
Motion
Each changed letter rolls in 620ms, staggered by position; the whole headline lands within about a second.
Accessibility
Real heading, paragraph and link carry the current text for screen readers; the reels are aria-hidden. The role picker is a labelled radiogroup, and the new headline is announced politely. Reduced motion swaps the text instantly.
Responsive
Fluid type with clamp(); words wrap only at spaces, so mid-word breaks can't happen during a roll.
On touch
Tap a role; everything else is the same.