---
title: "Notification Stack"
url: "https://sanyam.sh/lab/notification-stack"
date: "2026-11-13"
---

# Notification Stack

Tap the stack to open it. Swipe a card left to clear it.

a group of phone notifications that behaves the way ios's does: a stack with two cards peeking, a tap to open it, and a swipe left to clear a card.

key insight: every card's pose is a function of its index, whether the group is open and how far it has been pulled, so a tap, a swipe and a clear all change one input and a spring per property carries the rest.

a card fades as it is pulled, and clearing the group sinks every card back from the bottom up and waits for the last before the list closes.

- Source: https://github.com/SanyamPunia/www/blob/main/components/labs/notification-stack/index.tsx
