289

Table Crosshair Highlight

Hovering a table cell faintly lights its row and column and enlarges the cell

Form & controlHover & clickNumbers & dataUI interactionCSSJS + CSS

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A data table: hovering a cell faintly lights its entire row and column into a crosshair, and the pointed cell fills with the accent color, its text bolds and grows slightly, making it quick to match row and column headers; moving to another cell moves the crosshair, and leaving the table restores everything. (JS: on pointerover find the td's cellIndex and its tr, and add classes; CSS: .row and .col use a very faint semi-transparent background, the pointed cell an accent background + scale(1.12), transition 0.25 s)

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 form & control effects

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

Browse all effects →