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/mode-wait-doubles-duration.md
1---2title: Mode "wait" Doubles Duration3impact: MEDIUM4tags: mode, wait, duration5---67## Mode "wait" Doubles Duration89Mode "wait" nearly doubles animation duration; adjust timing accordingly.1011**Incorrect (too slow with wait):**1213```tsx14<AnimatePresence mode="wait">15<motion.div transition={{ duration: 0.3 }} />16</AnimatePresence>17```1819**Correct (halved timing):**2021```tsx22<AnimatePresence mode="wait">23<motion.div transition={{ duration: 0.15 }} />24</AnimatePresence>25```26