120

Hover Image Reveal

Hovering a work list floats a preview image by the cursor that tilts with movement

CursorHover & clickUI interactionHeadline & heroCSSHover preview

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A list of works in large type (work name on the left, number on the right, thin dividers between rows), with unselected rows faded. When the cursor moves onto a row, its text sharpens and nudges right, while a preview image of that work grows in next to the cursor and follows it; the faster you move sideways, the more the image tilts in that direction. Moving to another row swaps the image, and leaving the list shrinks it away. (How: the preview is position:absolute + pointer-events:none, translated to the cursor on mousemove, rotation computed from horizontal speed with a cap; image swaps use opacity / scale transitions)

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 cursor effects

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

Browse all effects →