mastering-animate-presence
✓Motion の AnimatePresence コンポーネントを使用して終了アニメーションを実装するためのガイドライン。 DOM から離れる要素をアニメーション化する場合、ネストされた出口を調整する場合、またはプレゼンス状態を管理する場合に使用します。 React の終了アニメーション、アンマウント トランジション、またはモーション ライブラリ パターンを含むタスクをトリガーします。
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:
Motion の AnimatePresence コンポーネントを使用して終了アニメーションを実装するためのガイドライン。 DOM から離れる要素をアニメーション化する場合、ネストされた出口を調整する場合、またはプレゼンス状態を管理する場合に使用します。 React の終了アニメーション、アンマウント トランジション、またはモーション ライブラリ パターンを含むタスクをトリガーします。 ソース: raphaelsalaja/userinterface-wiki。
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/raphaelsalaja/userinterface-wiki --skill mastering-animate-presence- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-01
- 更新日
- 2026-02-18
クイックアンサー
mastering-animate-presence とは?
Motion の AnimatePresence コンポーネントを使用して終了アニメーションを実装するためのガイドライン。 DOM から離れる要素をアニメーション化する場合、ネストされた出口を調整する場合、またはプレゼンス状態を管理する場合に使用します。 React の終了アニメーション、アンマウント トランジション、またはモーション ライブラリ パターンを含むタスクをトリガーします。 ソース: raphaelsalaja/userinterface-wiki。
mastering-animate-presence のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/raphaelsalaja/userinterface-wiki --skill mastering-animate-presence インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/raphaelsalaja/userinterface-wiki
詳細
- カテゴリ
- </>開発ツール
- ソース
- skills.sh
- 初回登録
- 2026-02-01