motion-animation
Motion (Framer Motion) animation library integration for Remotion - smooth, production-grade UI animations
Best use case
motion-animation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Motion (Framer Motion) animation library integration for Remotion - smooth, production-grade UI animations
Teams using motion-animation should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/motion-animation/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How motion-animation Compares
| Feature / Agent | motion-animation | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Motion (Framer Motion) animation library integration for Remotion - smooth, production-grade UI animations
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Motion Animation for Remotion
Integrate Motion (formerly Framer Motion) animation library with Remotion for smooth, declarative, production-grade animations in your video projects.
## When to use
Use this skill when you need to:
- Create smooth prop-based animations in Remotion compositions
- Build complex animation sequences with variants and orchestration
- Leverage spring physics for natural, organic motion
- Implement gesture-based animations (useful for preview/development)
- Animate SVG paths and shapes with precision
- Use Motion's declarative API alongside Remotion's frame-based timeline
- Create reusable animation patterns and presets
## When NOT to use
- For precise frame-by-frame control (use Remotion's `useCurrentFrame()` and `interpolate()` instead)
- For simple fade in/out animations (use Remotion's native `interpolate()` for better performance)
- When you need exact synchronization with Remotion's timeline (Motion runs in real-time)
## How to use
Read individual rule files for detailed explanations, code examples, and best practices:
### Core Concepts
- **rules/motion-basics.md** - Installing, configuring, and basic usage of Motion in Remotion
- **rules/motion-with-remotion.md** - Synchronizing Motion animations with Remotion's timeline
### Animation Techniques
- **rules/motion-animate.md** - Using Motion's animate prop, variants system, and animation control
- **rules/motion-spring.md** - Spring animations, physics-based timing, and natural motion
- **rules/motion-transitions.md** - Transition effects, easing functions, and animation orchestration
- **rules/motion-timing.md** - Timing control, delays, duration, and stagger effects
### Advanced Features
- **rules/motion-layout.md** - Layout animations, AnimatePresence, and shared layout transitions
- **rules/motion-gestures.md** - Hover, tap, drag, and other gesture-based animations
- **rules/motion-svg.md** - SVG path animations, morphing, and drawing effects
- **rules/motion-performance.md** - Optimization techniques and performance best practices
## Installation
```bash
npm install framer-motion
# or
yarn add framer-motion
# or
pnpm add framer-motion
```
## Quick Example
```tsx
import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";
import { motion } from "framer-motion";
export const MotionExample: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
// Sync Motion with Remotion's timeline
const progress = Math.min(frame / fps, 1);
return (
<AbsoluteFill style={{ backgroundColor: "white" }}>
<motion.div
animate={{
scale: progress,
opacity: progress,
}}
transition={{
type: "spring",
stiffness: 100,
damping: 20,
}}
style={{
width: 200,
height: 200,
backgroundColor: "#0099ff",
borderRadius: 20,
}}
/>
</AbsoluteFill>
);
};
```
## Best Practices
1. **Sync with Remotion**: Always sync Motion animations with `useCurrentFrame()` for predictable video rendering
2. **Use variants**: Leverage Motion's variant system for reusable, organized animation states
3. **Optimize performance**: Use `will-change` CSS property sparingly and prefer GPU-accelerated properties
4. **Test renders**: Always test your animations in actual Remotion renders, not just in preview
5. **Combine wisely**: Use Motion for complex declarative animations, Remotion for precise timeline control
## Resources
- [Motion Documentation](https://motion.dev)
- [Remotion Documentation](https://remotion.dev)
- [Motion Examples](https://motion.dev/examples)
- [Integration Guide](./docs/integration-guide.md)Related Skills
animation
Expert guidance for creating premium, performant animations in React using Motion (motion.dev). Covers all animation types, best practices, accessibility, and performance optimization.
animation-motion
Create smooth animations and micro-interactions with Framer Motion and CSS. Covers enter/exit animations, gestures, scroll animations, loading states, and performance optimization. Use for polished UIs, interactive elements, and engaging user experiences.
animation-interaction-validator
Ensures engaging user experience through validation of animations, transitions, micro-interactions, and feedback states, preventing flat/static interfaces that lack polish and engagement. Works with Tanstack Start (React) + shadcn/ui components.
animation-best-practices
CSS and UI animation patterns for responsive, polished interfaces. Use when implementing hover effects, tooltips, button feedback, transitions, or fixing animation issues like flicker and shakiness.
android-motion-specialist
Expert Android developer for the Motion Detector project. Use this skill when working on Camera2 API integration, motion detection algorithms, Android networking (LAN sockets + Supabase Realtime), debugging crashes, or any Android/Kotlin development tasks specific to this sprint timing application.
sales-motion-design
When the user wants to choose between PLG and sales-led, design a sales motion, optimize time-to-first-value, or build a value-before-purchase experience. Also use when the user mentions 'PLG,' 'product-led growth,' 'sales-led,' 'sales motion,' 'free trial,' 'freemium,' 'self-serve,' 'demo-first,' 'time-to-first-value,' 'TTFV,' or 'agent-led sales.' This skill covers sales motion selection, value delivery design, and go-to-market motion architecture.
remotion-visual-debug
Visual debugging for Remotion video projects. Use when working with Remotion compositions to verify animations, layouts, positioning, and timing by rendering frame samples. Essential for self-correcting visual issues that aren't apparent from code alone.
astro-animations
Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
animations-transitions
SwiftUI animations, @Animatable macro, withAnimation, transitions, PhaseAnimator, KeyframeAnimator, and interactive motion design. Use when user asks about animations, transitions, @Animatable, withAnimation, spring animations, keyframes, or motion design.
animation-principles
Applies Disney's 12 animation principles to UI motion design. Use when improving animation quality, designing micro-interactions, creating easing curves, or making transitions feel natural and purposeful.
animation-designer
Expert in web animations, transitions, and motion design using Framer Motion and CSS
animation-creator
CSS animation and transition creator. Generates optimized @keyframes, transitions, and transform sequences with performance best practices and motion accessibility. Use when adding animations, transitions, or micro-interactions.