Agent skill
motion
Animation patterns using Framer Motion.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/motion-afettah-git-coupling-analyze
SKILL.md
Motion & Animations
Import
import { motion, AnimatePresence } from 'framer-motion';
Common Patterns
Fade + Scale (modals, cards)
<motion.div
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.95 }}
transition={{ duration: 0.2 }}
/>
Slide In (panels, drawers)
<motion.div
initial={{ x: -20, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
transition={{ duration: 0.15 }}
/>
List Stagger
<motion.ul initial="hidden" animate="visible" variants={{
visible: { transition: { staggerChildren: 0.05 } }
}}>
{items.map(item => (
<motion.li key={item.id} variants={{
hidden: { opacity: 0, y: 10 },
visible: { opacity: 1, y: 0 }
}} />
))}
</motion.ul>
Exit Animation (wrap parent)
<AnimatePresence mode="wait">
{isOpen && <motion.div key="modal" exit={{ opacity: 0 }} />}
</AnimatePresence>
Timing Reference
| Use Case | Duration |
|---|---|
| Micro (hover, focus) | 100-150ms |
| UI feedback | 200ms |
| Panels/modals | 200-300ms |
| Page transitions | 300-500ms |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?