Sticky date headers with a body: the next header squashes the stuck one, shoves it along the band and folds it into a tab on the rail of passed groups.
Scroll insideScroll inside
All events
31 events
Today6 (6 events)
Invoice #1048 marked paidBilling · by Finance bot
Deploy to production succeededapi-gateway · build 3912
Use it for long lists grouped by date or bucket that scroll inside a card. Each group header sticks, the next one shoves it onto a rail of passed groups, and a tab on the rail jumps back to that group.
When not to use
For a short list that fits on screen, plain headings are enough. For rows people sort and filter rather than read by date, use Data Table.
Use Sticky Shove for long lists grouped by date or bucket that scroll inside a card: activity and audit logs, inboxes, notifications, transactions. When the next header reaches the stuck one it presses into it (the stuck tile squashes as you scroll, and swells back if you scroll up), then shoves it along the band onto a rail of passed groups, where it lands as a tab. The rail says where you are and where you came from; a tab brings its group back. For a short list that fits on screen, use plain headings; for navigation between pages, use tabs or a breadcrumb.
StickyShove is the scrolling list: give it a height and a label. Each StickyShoveGroup renders its header (a real <h3>) and then its children, the rows. count shows in the header and is read as "(6 events)" with itemLabel. onGroupChange reports the stuck group's id. The band and the tabs sit on card; keep header labels short (dates, months, buckets).
Presets: rail (default, tile headers and pill tabs, three tabs before "…"), capsules (pill headers and pill tabs) and blocks (tile headers and tile tabs, four tabs). header, tab (any Shape) and maxTabs override the preset. The rail never reaches the stuck header: on a narrow list it keeps fewer tabs and folds the rest into the "…" ball.
Set the character for the whole app with MotionKitProvider, or per instance with temperament (calm, lively, playful). It changes motion intensity only (squash, lift, bump, overshoot), never the drawing.
The default demo: a workspace audit log grouped by date. On first view it scrolls itself once: "Yesterday" presses into "Today", backs off, then shoves it onto the rail.
Scroll insideScroll inside
All events
31 events
Today6 (6 events)
Invoice #1048 marked paidBilling · by Finance bot
Deploy to production succeededapi-gateway · build 3912
The list is a focusable role="region" named by label; the arrow, Page and Home/End keys scroll it natively and drive the same squash and shove as a wheel. A focused row that lands under the band is scrolled clear of it; focusing a rail tab never scrolls the list.
Headers stay real <h3> elements in the list and name their <section>; the copies drawn in the band are aria-hidden. The count is read in words.
The rail is a <nav> ("Passed groups", railLabel) of links: "Back to Yesterday", and "Earlier: Today, Yesterday" on the "…" ball. Only tabs on the rail are in the tab order.
A polite live region says the stuck group when it changes.
Headers use card and tabs secondary with their foreground colors and a 2 px ink rim, at least 4.5:1 in both themes. Focus shows a 3 px ring: inset on the list, around the tab (same radius), and on the band's copy of a heading focused after a jump.
No squash, shove, bump or overshoot: the stuck header is replaced in place and the tabs fade in on the rail (160 ms). The demos do not scroll themselves.
Transform and SVG path only. One requestAnimationFrame per scroll event while two headers touch, and a short loop while a shove or a fade runs; nothing runs while you scroll inside a group or stand still.
Header offsets and widths are measured once and again only when the list or its content resizes (ResizeObserver), never per frame.
No dependency beyond the MotionKit libs (motion-kit, shape, compose-refs, utils).
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
Triggers
scroll, click, keyboard focus
Reduced motion
No squash, shove, bump or overshoot: the stuck header is replaced in place and the tabs fade in on the rail.
Keyboard
Arrow keys / Page Up / Page Down / Home / End
On the focused list: scroll it; headers press, shove and come back exactly as with a wheel
Tab
Reaches the list, then the tabs on the rail (newest first, then the "…" ball)
Enter
On a tab: jumps back to that group and focuses its heading
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)