Skip to content

No.509 · Type & Names

Initial Fold

A full name that folds down to its initials: the letters between them collapse to zero width in a stagger, and the initials gain periods.

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: Two words

Render each word of a name as: an italic serif initial in amber, an optional period, and the remaining letters inside a grid cell whose column animates 1fr↔0fr (so the collapse has no fixed width). By default the name is folded — rests at 0fr and 0 opacity, periods shown. Hovering or focusing unfolds it over 0.55s with each word delayed by 70ms; leaving refolds it. A click/tap toggles, since touch has no hover. Selected variant — Two words (folded): Two words: "Hamza Al-Bulushi" (the hyphenated surname folds as one word), starting folded. 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 unfolds the name; click/tap toggles. Motion: grid-template-columns 0fr↔1fr with cubic-bezier(.6,0,.2,1), per-word stagger; periods fade/scale via width. Accessibility: One button with aria-label of the full name and aria-pressed; visible focus ring; reduced motion drops the transitions. Responsive behavior: Font size scales with clamp(); words never wrap. 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 unfolds the name; click/tap toggles.
Motion
grid-template-columns 0fr↔1fr with cubic-bezier(.6,0,.2,1), per-word stagger; periods fade/scale via width.
Accessibility
One button with aria-label of the full name and aria-pressed; visible focus ring; reduced motion drops the transitions.
Responsive
Font size scales with clamp(); words never wrap.