113

Spotlight Card

A glow lights up card borders and insides as the cursor passes

Card & groupHover & clickUI interactionCSSradial-gradient

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of understated cards; as the cursor moves near them, the part of each card's border closest to the cursor is lit by a glow (accent color), and a very faint glow follows the cursor inside the card too. The light only reaches near the cursor and gets darker with distance, so you can see the edges of neighboring cards lit slightly at the same time. (How: on mousemove compute the cursor position relative to each card and write --x, --y; ::before uses radial-gradient(circle at var(--x) var(--y)) with mask-composite to show only the border ring, ::after adds the inner glow)

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More card & group effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →