GitHub Stars
Docs
Animated List

Animated List

A sophisticated animation component that creates dynamic column-based transitions with scaling effects. Perfect for showcasing notifications, messages, or any sequential content with smooth formation, scrolling, and reset animations.

Location
Location2h ago
Thomas has arrived home
Fitness Tracker
Fitness Tracker1h ago
You've reached your daily step goal!
Calendar
Calendar45m ago
Meeting with team in 30 minutes
Task Manager
Task Manager1d ago
3 tasks due today
Health
Health3h ago
Your heart rate is elevated.
Email
Email5m ago
New message from your manager
TikTok
TikTok2d ago
Your video got 1000 likes!
Grandpa
Grandpa1w ago
How are you doing, my dear?
Clara
Clara2d ago
Let's meet for coffee tomorrow!
Sarah
Sarah4h ago
Did you see the new movie?
Location
Location2h ago
Thomas has arrived home
Fitness Tracker
Fitness Tracker1h ago
You've reached your daily step goal!
Calendar
Calendar45m ago
Meeting with team in 30 minutes
Task Manager
Task Manager1d ago
3 tasks due today
Health
Health3h ago
Your heart rate is elevated.
Email
Email5m ago
New message from your manager
TikTok
TikTok2d ago
Your video got 1000 likes!
Grandpa
Grandpa1w ago
How are you doing, my dear?
Clara
Clara2d ago
Let's meet for coffee tomorrow!
Sarah
Sarah4h ago
Did you see the new movie?

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/animated-list.json

Usage

import { AnimatedList } from "@/components/ui/animated-list";
<AnimatedList>
  {notifications.map((notification) => (
    <Notification key={notification.id} notification={notification} />
  ))}
</AnimatedList>

Props

animated-list props.

PropTypeDescriptionDefault
childrenReact.ReactNodeThe content to be displayed in the animated list.-
classNamestringAdditional CSS classes for custom styling.-
stackGapnumberVertical spacing between items in the initial stack formation.20
columnGapnumberVertical spacing between items in the column formation.85
scaleFactornumberFactor used to scale items in the initial stack formation.0.05
scrollDownDurationnumberDuration of the scroll down animation in seconds.5
formationDurationnumberDuration of the column formation animation in seconds.1

animated-list-item props.

PropTypeDescriptionDefault
childrenReact.ReactNodeThe content of the list item.-
classNamestringAdditional CSS classes for custom styling.-
indexnumberThe position of the item in the list.-
listLengthnumberThe total number of items in the list.-
stackGapnumberVertical spacing between items in the initial stack formation.10
columnGapnumberVertical spacing between items in the column formation.100
scaleFactornumberFactor used to scale items in the initial stack formation.0.1
formationDurationnumberDuration of the column formation animation in seconds.1
visibleItemsCountnumberNumber of items visible in the initial stack.4
resetSpringStiffnessnumberSpring animation stiffness for reset animation.120
resetSpringDampingnumberSpring animation damping for reset animation.20
Previous
Next