168

Expanding Panels

A row of narrow image panels; the hovered one widens and shows a title

Image & mediaHover & clickUI interactionHeadline & heroCSSCSS flex

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A row of equal-width vertical image panels; when the mouse moves onto one, it smoothly expands to about 4× the width of the others while they narrow in sync, and once expanded a title fades in at its bottom left; moving to another panel hands off smoothly. About 0.6 s, ease-out. Good for work categories or gallery entry points. (CSS: container display:flex, each panel flex:1, flex:4 on hover with transition flex; images use object-fit:cover to avoid distortion; the title has a transition-delay)

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 →