Heat card

A card that warms while you look at it, pointer or keyboard, and cools slowly when you leave instead of switching off.

Look at meHover or focus the card: it warms, then cools when you leave.

Features

  • The Glow effect's Neon preset driven by heat: it lights in 60 ms and cools over half a second.
  • Hover and focus anywhere inside both count, so keyboard users see the same warmth.
  • The glow loads after the page, so the card renders and reads without it.

Use it for

  • Project and product cards.
  • Anything a visitor is choosing between.

On this site

Installation

  1. Get runets.
    git clone https://github.com/ziyam-khan/runets
  2. Copy these files into your project, keeping their folders.
  3. Install what they use.
    pnpm add react
  4. Load the styles once. Bring your own base tokens, or use runets’ default theme.
    import 'runets/styles/theme.css'
    import 'runets/styles/kit.css'

API

PropTypeWhat it does
glowParamsGlow parameters over the Neon preset: color, core, radius, intensity, inner.
…restHTML attributesPassed to the article.

Accessibility

Source

The code is in src/kit/heat-card.tsx in runets, MIT licensed.