Spotlight card

From nexu-io/motion-anything · View interactive version

Spotlight card is an AI agent skill from the GitHub repository nexu-io/motion-anything. Give feature/pricing cards a premium feel: a soft radial spotlight follows the cursor across the card and lifts its border. Keep the glow subtle and low-contrast. Falls back to a plain static border under prefers-reduced-motion and on touch. Do not use on text-dense reading surfaces.

How to use this skill

Skill file

spotlight-card

A radial spotlight that follows the cursor across a card. Part of

motion-anything; obeys MOTION-SPEC.md. Technique

popularized by Aceternity UI, reimplemented dependency-free.

When to use it

When NOT to use it (restraint)

How to apply

  1. Copy spotlight-card.css and spotlight-card.js into the project, and link them.
  2. Mark the card:

```html

<div class="spotlight"> … </div>

```

  1. Auto-attaches to .spotlight. JS writes --mx/--my; the CSS paints the glow there.

Accessibility & performance

Framework notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.