Card Expand Detail
Clicking a card smoothly expands it into a detail panel as the others fade
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A row of portfolio cards; clicking one smoothly expands it from its position and size into a detail panel filling the whole area (large image on the left, title and description on the right) while the other cards fade out; the text inside fades in around the end of the expansion. Clicking again shrinks it back and the other cards fade back in. About 0.6 s, ease-in-out. (GSAP Flip: Flip.getState to record all cards → toggle the expanded card's class (absolutely positioned to fill the container with the new layout) → Flip.from, with nested:true so inner elements transform too)
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 card & group effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →