Skip to content

No.02 · Buttons

Cascade

A pill whose label turns over letter by letter, left to right, while its arrow is swapped for a fresh one arriving from the left.

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: Bone + ink

Build a primary pill link (52px, inset top highlight, small negative-spread shadow) with a round 'well' on the right holding an arrow. Split the label into letters; each letter is a 1em-tall reel containing the letter twice, stacked. On hover or focus every reel translates up 100% over 560ms with cubic-bezier(0.16,1,0.3,1), delayed 22ms per letter — the word turns over like a wave travelling left to right, and because both rows are identical it reads as motion, not as a change of text. At the same time the left padding opens by a quarter rem, so the pill seems to inhale. The arrow well holds two arrows in one grid cell: the first leaves to the right (translateX 200%, 40ms delay) as the second arrives from the left (from −200%, 90ms delay), so the arrow is replaced rather than nudged. Press scales to 0.97. The tone prop sets face, text and well colours. Selected variant — Bone + ink (pair): Bone + ink: two links side by side on #0b080d — the default bone tone (bone face, ink text, ink well) "Start a project", and tone="ink" (ink face, bone text, hairline ring) "See the work". 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: Hover or focus rolls the letters and swaps the arrow; press compresses the pill. Motion: 560ms expo-out per letter with a 22ms stagger; arrow exchange 560ms with 40/90ms offsets; padding 520ms. Accessibility: A real link whose accessible name is the full label (the per-letter reels are aria-hidden). Focus-visible plays the same motion plus an outline. Reduced motion makes it instant. Responsive behavior: Intrinsic width; labels never wrap. Touch: On touch the roll plays while pressed; nothing is hidden behind hover. 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
Hover or focus rolls the letters and swaps the arrow; press compresses the pill.
Motion
560ms expo-out per letter with a 22ms stagger; arrow exchange 560ms with 40/90ms offsets; padding 520ms.
Accessibility
A real link whose accessible name is the full label (the per-letter reels are aria-hidden). Focus-visible plays the same motion plus an outline. Reduced motion makes it instant.
Responsive
Intrinsic width; labels never wrap.
On touch
On touch the roll plays while pressed; nothing is hidden behind hover.