
N° 0972 · overlay
Hover Card with Safe Triangle is a hover overlay effect. It responds to hover, focus and pointer. Palettes: Fjell, Glacier, Heather, Night hike and Granite.
pointerenter on a[data-card] (mouse or pen) starts a 350 ms timer; if a card is already open for another link it switches at once. pointerleave on the link records the exit point E and builds the triangle E, C1, C2 where C1 and C2 are the card's near corners (top corners when the card is below, bottom when above) pushed 6 px outward. A document pointermove tests the point with the sign-of-cross-product method: inside, the close timer is held (a 500 ms stall still closes it); outside and not over the link or card, the card closes after 150 ms. The card is position: fixed, filled from <script type='application/json' class='hc-data'> by the link's data-card key, and tied to the link with aria-describedby while open. Focus opens it immediately; Escape and blur close it. hc:grace { points } is dispatched for the demo's overlay.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.

N° 0972 · overlay

N° 0971 · overlay

N° 0970 · overlay

N° 0816 · overlay

N° 0815 · overlay

N° 0814 · overlay

N° 0813 · overlay

N° 0409 · overlay

N° 0964 · text

N° 0837 · text

N° 0828 · loader

N° 0802 · cursor

N° 0838 · text

N° 0830 · card

N° 0823 · image

N° 0815 · overlay