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.
Inside, the dashed circle is one light, copied into every card and cut to its shape; each card's face hides the middle, so only the edge glows. Move over the cards, or press Show me.
No glow: the cards ignore the pointer, shown as a ghost; Spotlight: the edges near the pointer light up and the light follows it. Move over the cards, or press Show me.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.