Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MotionDivNew to Visual Studio Code? Get it now.
MotionDiv

MotionDiv

Anshuman1313

|
2 installs
| (1) | Free
Convert React div elements to motion.div and handle Motion imports with a single shortcut.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

MotionDiv Demo

Example Workflow

Manual

Select div
↓
Import motion
↓
Change opening tag
↓
Change closing tag
↓
Verify everything

MotionDiv

Select div
↓
Shortcut
↓
Done

Real Workflow

MotionDiv Demo

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

  1. Open VS Code
  2. Open Extensions
  3. Search for MotionDiv
  4. Click Install

Usage

Keyboard Shortcut

Ctrl + Shift + M

Command Palette

MotionDiv: Convert Div to MotionDiv
  1. Select a div element
  2. Press Ctrl + Shift + M
  3. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft