Swipe to dismiss

Also called swipe away or swipe to delete

A gesture where you drag an item sideways past a threshold to remove it, while a shorter swipe lets it spring back into place.

What is Swipe to dismiss?

Swipe to dismiss lets people clear a notification, toast, or list item by flicking it away. The item follows the finger sideways and fades as it goes. Past a threshold, often 30 to 50% of its width, it flies off and the items below slide up to close the gap. A shorter drag springs it back.

Check speed as well as distance: a quick flick should dismiss even when the finger travels only a little. Lock the gesture to the horizontal axis so vertical scrolling still works.

Swiping is invisible until someone tries it, so also show a close button or menu action for mouse and keyboard users, and offer undo when dismissing deletes something.

All terms

Drag gesture

Moving an element by pressing on it and sliding the pointer or finger, usually within set bounds and with a glide after release.

Velocity

The speed and direction an element already has when an animation starts, which a spring carries forward so a flick flows into what follows.

Toast notification

A brief message that slides into a corner of the screen to confirm an action, then disappears on its own after a few seconds.

Undo

A way to reverse an action right after doing it, often a toast with an Undo button that appears after deleting or archiving something.