260

Hover Zoom in Frame

Hovering an image zooms it slowly inside a fixed frame as the title rises from the bottom

Image & mediaHover & clickUI interactionCSSCSS hover

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of image cards, each image in a fixed-size rounded frame (overflow:hidden): on hover the frame stays the same size while the image slowly zooms to 1.1× over about 0.8 s with an ease-out curve; the title bar at the bottom (on a transparent-to-semi-opaque gradient) rises slightly and becomes fully clear; leaving eases the image back. (CSS: container overflow:hidden; img transition: transform .8s cubic-bezier(.2,.7,.2,1), img transform:scale(1.1) on container :hover; the title transitions translateY and opacity together)

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 image & media effects

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

Browse all effects →