Animations
AnimatedList
Animate a list of items in sequentially, with enter/exit transitions.
Quick Preview
๐
New message
2m agoYou have a new message from Alex
๐
Deployment success
5m agov1.4.0 deployed to production
๐
PR approved
12m agoYour PR #142 was approved
๐
Weekly report
1h agoYour weekly analytics report is ready
Installation
npm install framer-motion
// Copy fromsrc/components/animations/AnimatedList.tsx
Examples
From left direction
Alpha
Beta
Gamma
Delta
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items* | T[] | - | Array of items to render |
renderItem* | (item: T, index: number) => React.ReactNode | - | Render function for each item |
keyExtractor* | (item: T, index: number) => string | number | - | Key extractor function |
staggerDelay | number | 0.08 | Stagger delay between items |
delay | number | 0 | Initial delay |
duration | number | 0.4 | Per-item animation duration |
whenInView | boolean | false | Trigger when list enters viewport |
once | boolean | true | Animate only once |
direction | 'up' | 'down' | 'left' | 'right' | 'up' | Slide direction |
className | string | - | Wrapper element classes |
itemClassName | string | - | Per-item wrapper classes |