Black Hole Delete, animated React component
An inbox where deleting is a cosmic event. Swipe a message away, or press its close button, and a black hole opens beside it: the list bends around it like a lens, the message is stretched thin and spirals in, and a shockwave ripples through the rest. Restore runs it backwards with a white hole.
- Pro
- Inputs & Controls
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Inbox6
Swipe a message away, or hover and press its close button.
- Ava Chen: Design review moved to Thursday at 3?
- Build bot: Deploy failed: step 4 of 7 timed out
- Marco: Lunch? Ramen again or somewhere new
- Motion Weekly: Twelve interfaces that move like physics
- Sam Rivera: Sent the redlines, one open question on IP
- Flash sale: 48 hours left. Your cart is waiting
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| messages | BlackHoleMessage[] | six sample messages | The inbox: title, body, time and avatar colour for each message. Each one also gets a real delete button for keyboard and screen reader users. |
| height | number | 540 | Height of the stage, in px. About 76 + 69 per message + 40 fits the list and the hint line. |
| autoplay | boolean | false | A ghost pointer swipes a few messages away and restores them, until a real pointer arrives. Pauses off screen and never runs under reduced motion. |
| className | string | — | Extra classes for the stage. |