Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/nested-consistent-timing.md
1---2title: Coordinated Parent-Child Exit Timing3impact: MEDIUM4tags: nested, timing, exit5---67## Coordinated Parent-Child Exit Timing89Parent and child exit durations should be coordinated.1011**Incorrect (parent too fast):**1213```tsx14<motion.div exit={{ opacity: 0 }} transition={{ duration: 0.1 }}>15<motion.div exit={{ scale: 0 }} transition={{ duration: 0.5 }} />16</motion.div>17```1819**Correct (coordinated timing):**2021```tsx22<motion.div exit={{ opacity: 0 }} transition={{ duration: 0.2 }}>23<motion.div exit={{ scale: 0 }} transition={{ duration: 0.15 }} />24</motion.div>25```26