04.31 · Micro-Interactions

Spotlight Hover Glow

A soft glow follows the pointer and lights card edges. Best for feature grids.

Hover it

Move your pointer over the cards, drag a finger across them (or Tab to them and use the arrow keys), or press Show me.

Analytics

See what people click.

Automations

Runs tasks for you.

Security

Logins kept safe.

Sync

Work on every device.

Reports

Weekly summaries.

Teams

Invite and share.

Try it

Change a setting, then try it again or press Show me.

Glow size

How far the light reaches around the pointer.

Color

The color of the light and of the lit edges.

The card edges near the pointer glow brightly.

More optionsFewer options

Lag

How far the light trails behind a moving pointer.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a spotlight glow to [the grid of dark cards you want to light up]. As the pointer moves over the grid, a soft round light follows it across the cards and, when the settings include it, lights up the card edges closest to the pointer while the far edges stay dim. Give each card its own light, clipped to the card, and move it to the pointer with transforms only, so nothing is repainted while it moves. Fade the light in when the pointer arrives and out when it leaves. On touch screens, let a finger dragged across the cards move the light. If the visitor has reduced motion turned on, keep the light on the pointer with no glide. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Feature grids
  • Pricing cards
  • Dashboards
  • Portfolios

Avoid on

  • Light themes
  • Text-heavy pages