Swipe to Delete
Swipe a list item left to reveal delete; swipe all the way to remove it
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
List items can be swiped left with a finger, revealing a warning-colored “Delete” button behind; releasing before halfway springs back, while releasing past a threshold (about 30%) sends the item sliding off to the left, then the row's height collapses to 0 and the items below move up smoothly. (GSAP: Draggable type:"x" limited to leftward movement, edgeResistance 0.8; onRelease checks the threshold, then xPercent:-100 and tween height to 0; set touch-action:pan-y on mobile so vertical scrolling still works)
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 →