mastering-animate-presence
✓Guidelines for implementing exit animations with Motion's AnimatePresence component. Use when animating elements leaving the DOM, coordinating nested exits, or managing presence state. Triggers on tasks involving React exit animations, unmount transitions, or motion library patterns.
Installation
SKILL.md
When elements leave the DOM, they're gone—no way to animate something that doesn't exist. Motion's AnimatePresence solves this by keeping departing elements mounted long enough to animate out.
| AnimatePresence | Wrapper that enables exit animations | | useIsPresent | Hook to read if component is exiting | | usePresence | Hook for manual exit control with safeToRemove | | propagate | Prop to enable nested exit animations | | mode | Controls timing between enter/exit (sync, wait, popLayout) |
Use useIsPresent when a component needs to know it's exiting:
Guidelines for implementing exit animations with Motion's AnimatePresence component. Use when animating elements leaving the DOM, coordinating nested exits, or managing presence state. Triggers on tasks involving React exit animations, unmount transitions, or motion library patterns. Source: raphaelsalaja/userinterface-wiki.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/raphaelsalaja/userinterface-wiki --skill mastering-animate-presence- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is mastering-animate-presence?
Guidelines for implementing exit animations with Motion's AnimatePresence component. Use when animating elements leaving the DOM, coordinating nested exits, or managing presence state. Triggers on tasks involving React exit animations, unmount transitions, or motion library patterns. Source: raphaelsalaja/userinterface-wiki.
How do I install mastering-animate-presence?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/raphaelsalaja/userinterface-wiki --skill mastering-animate-presence Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/raphaelsalaja/userinterface-wiki
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01