Lightbox Zoom
Tap a thumbnail and it zooms smoothly from its spot to the center as the background dims
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 square thumbnails; tapping one smoothly enlarges it from its position and size to a large size in the center of the screen (about 0.55 s, ease-in-out), while a semi-transparent overlay dims everything else behind it; tapping the large image or the overlay shrinks it smoothly back to its spot in the thumbnail row and fades the overlay. (GSAP Flip: Flip.getState to record the thumbnail → add an “expanded” class (absolutely positioned, centered and larger) → Flip.from; reverse to close; the overlay uses an opacity transition)
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 →