No.130 · Cards
Entry Point Card
A case-study card whose colour blooms from the exact point your cursor crossed its edge and drains toward where you leave; every word inverts precisely along the circle.
The prompt
Written for the variant you picked above: Paper
Build a case-study link card (20px radius, hairline ring) with a client and year in mono caps, a balanced 1.5rem title, a muted summary, a ruled footer with one big result ('+38%' / 'completed bookings in 3 months') and a round arrow, and small tag pills. Render the whole content twice in identical boxes: once on the card, and once inside a full-size fill layer (deep plum on paper, frost on night) with inverted colours, achieved by overriding the colour custom properties on the fill. Clip the fill with clip-path: circle(0% at var(--ex) var(--ey)). On pointerenter, write the entry point as percentages of the card to --ex/--ey and open the circle to 150% over 820ms on an expo-out curve; on pointerleave, move the point to where the pointer exits and close it on an ease-in curve (560ms), so the colour drains toward the side you left through. Because both copies line up exactly, the letters invert along the edge of the moving circle. The card lifts 3px while open. Keyboard focus blooms from the centre; touch blooms from the finger on press. Selected variant — Paper (paper): Palette for this theme (Paper): --epc-accent #a8432f; --epc-card #fffdf8; --epc-fill #3b2140; --epc-fill-accent #f3b58c; --epc-fill-ink #f6eee6; --epc-fill-line rgb(246 238 230 / 0.2); --epc-fill-muted rgb(246 238 230 / 0.72); --epc-focus #2f5fd0; --epc-ink #1b1a17; --epc-line rgb(27 26 23 / 0.12); --epc-muted #6f6a62. 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 "paper". 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: Enter from any side and the colour blooms from there; leave and it drains to the exit. Tab to it and it blooms from the centre. Motion: Bloom 820ms expo-out; drain 560ms ease-in; lift 520ms. Accessibility: One real link per card; the inverted copy is aria-hidden so the content is read once. Focus shows the filled state plus an outline. Reduced motion makes the bloom instant. Responsive behavior: Cards sit in an auto-fit grid (min 17rem) and stack on phones; titles balance. Touch: The colour blooms from your finger when you press. 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
- Enter from any side and the colour blooms from there; leave and it drains to the exit. Tab to it and it blooms from the centre.
- Motion
- Bloom 820ms expo-out; drain 560ms ease-in; lift 520ms.
- Accessibility
- One real link per card; the inverted copy is aria-hidden so the content is read once. Focus shows the filled state plus an outline. Reduced motion makes the bloom instant.
- Responsive
- Cards sit in an auto-fit grid (min 17rem) and stack on phones; titles balance.
- On touch
- The colour blooms from your finger when you press.