344

Swipe Down to Dismiss

Tap a thumbnail to open it full screen; drag down and the photo shrinks with your finger as the backdrop fades, then flies back to its thumbnail

Image & mediaDrag & gestureSwitchApp UIUI interactionGSAPApp · Dismiss

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A phone photo album with three columns of square thumbnails. Tapping a thumbnail: it smoothly grows from its own position and size into a full-width photo centered vertically, its rounded corners squaring off, while the background turns solid black and a small handle with a 'Drag down to close' hint appears below. Holding the photo and dragging down: it follows the finger (with some sideways movement too), shrinking the farther it goes (down to about 0.6) while the black background grows transparent to reveal the album beneath; dragging up meets strong resistance. On release, if it moved more than about 15% of the screen height or was flicked down fast enough, the photo flies from its current position and size back to its original thumbnail spot with small rounded corners as the background fades out; otherwise it bounces back to full screen and the background returns to black. When idle it demonstrates on its own: open one, drag down, close. (GSAP: opening and closing both tween the photo's left, top, width and height between the thumbnail and the target; while dragging it follows with x, y and scale, and before closing the current on-screen rect is converted back into left, top, width and height before tweening)

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 →