Hover Zoom & Pan
Hovering zooms the image 2× with the zoom point following the cursor, for product details
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A large product image: when the mouse enters, the image smoothly zooms to about 2.2× inside its frame, and the zoom center follows the cursor, so moving to the top left shows top-left detail and moving to the bottom right shows bottom-right detail; leaving shrinks it back. A small “Hover for details” hint at the bottom right fades out while zoomed. (JS + CSS: on mousemove set transform-origin to the cursor's percentage position in the image, scale(2.2) on container :hover with a 0.5 s transition; container overflow:hidden, cursor:zoom-in)
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
- Tap “Copy AI prompt”.
- 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).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More image & media effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →