Skip to content
IndexRequest a UIAboutContact

Cursor Spotlight Cards

A grid of cards lit by a soft glow that follows the pointer across all of them at once.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Dark UI mockup of a three by two grid of feature cards on a near-black background, a soft white radial glow centred between the top two cards as if lit by a cursor, the border of each card brightest where it is closest to the glow, each card with a small icon, a short title and one line of grey text, rounded corners, fine one-pixel borders, subtle and premium, flat design. Variants: the glow at the far right, and no glow. Negative: neon colours, heavy shadows, text errors, clutter. Reduced motion: static design.

About this pattern

Definition

A spotlight grid makes a whole row of cards feel lit by the cursor. Each card draws a radial gradient centred where the pointer is relative to that card, so the light seems to pass across gaps and borders as one beam rather than lighting only the hovered card.

Purpose & UX principles

  • Track the pointer on the grid and set per-card custom properties for the offset inside each card.
  • Use a low-opacity gradient for the fill and a brighter one on the border using a mask.
  • Fade the glow out when the pointer leaves.

Interaction states

  • Six cards, an Intensity slider and a Spotlight on/off switch.

Motion specification

  • The glow follows the pointer directly and fades out over 250ms.
  • Reduced motion: the glow is static at the top left of each card.

Responsive behaviour

  • The glow is decoration only; every card must look finished without it.
  • On touch devices there is no hover, so show a static soft highlight instead.

Code

HTML
<div class="bx"><div class="gr" id="gr"></div><div class="row2"><label class="sw"><input id="on" type="checkbox" checked> Spotlight</label><label class="rw" style="flex:1">Intensity <b id="iv">50%</b><input id="it" type="range" min="10" max="100" value="50"></label></div></div>

Related patterns

Interactive Card

↗
Interactive CardCards & Containers

Tilt Card

↗
Tilt CardCards & Containers

Hover Reveal Card

↗
Hover Reveal CardCards & Containers