MotionDiv
Convert any React <div> into a motion.div instantly.
Select a <div> and press Ctrl + Shift + M.
Automatically handles "framer-motion" → "motion/react" imports.

Example Workflow
Manual
Select div
↓
Import motion
↓
Change opening tag
↓
Change closing tag
↓
Verify everything
MotionDiv
Select div
↓
Shortcut
↓
Done
Real Workflow

Features
- Convert
div → motion.div
- Automatically adds or updates Motion imports
- Works directly inside VS Code
- Fast keyboard-driven workflow
- Saves repetitive editing time
Installation
- Open VS Code
- Open Extensions
- Search for MotionDiv
- Click Install
Usage
Keyboard Shortcut
Ctrl + Shift + M
Command Palette
MotionDiv: Convert Div to MotionDiv
- Select a div element
- Press
Ctrl + Shift + M
- Done
Before
<div className="card">
Content
</div>
After
<motion.div className="card">
Content
</motion.div>
What's Next?
MotionDiv currently supports converting div elements.
Support for additional HTML elements is planned for future updates.
Feedback
Found a bug or have a feature request?
Open an issue on GitHub.