Micro-interactions

Dismiss

Pro

Throw the top card away and the stack closes up behind it. Distance commits, but so does speed — a fast flick from barely anywhere counts, and anything short of both rubber-bands home carrying the velocity you let go at.

Install

Props

What It Demonstrates

Swipe to dismiss
Dragging an element off-screen to close it, like a drawer or toast.
Rubber-banding
Resistance and snap-back when you drag past a boundary (the iOS overscroll feel).
Velocity
How fast and in which direction an element is moving. A spring carries it into the next animation when interrupted, so a flicked element keeps its speed.
Momentum
Motion that carries velocity, especially after a drag or interruption.
Interruptible animation
An animation that can be smoothly redirected mid-flight instead of finishing first.
Drag
Moving an element by grabbing it, often with momentum when released.
Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.

Related Components

Appears In