No.86 · 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
The design brief behind this component — reuse it to regenerate, remix, or explain it.
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.
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.