Animated List
ProReveals items one at a time, newest on top, like a notification feed.
Installation
pnpm dlx shadcn@latest add @viewport/animated-list
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| interval | numberMilliseconds between items. | 1400 |
| max | numberMaximum items visible at once. Older items leave from the bottom. | 4 |
| loop | booleanStart over after the last item. | true |
| className | string | — |
| children* | React.ReactNode | — |
Accessibility
- Shows all items at once under reduced motion.
- Uses layout animation, so siblings move smoothly instead of jumping.