slidev-magic-move

Animate code transitions between states using Shiki Magic Move.

34|1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-magic-move
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slidev-magic-move
Source: https://github.com/yoanbernabeu/slidev-skills/tree/main/skills/code/slidev-magic-move
Command: npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-magic-move

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps presenters illustrate code evolution by animating transitions between code states, making diffs and refactors easy to follow.

Core Features & Use Cases

  • Animated transitions: Seamlessly morph between code blocks to highlight changes.
  • Multi-step storytelling: Build a sequence of steps to show progressive evolution of code.
  • Use Case: Demonstrate a refactor or a before/after comparison in a slide or tutorial.

Quick Start

Use the slidev-magic-move skill to create animated sequences by wrapping code blocks in the special md magic-move directive.

Frequently Asked Questions about slidev-magic-move

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I animate code transitions in a Slidev presentation?

You animate code transitions in a Slidev presentation by wrapping code blocks in the standard Markdown magic-move directive to visually morph differences between states.

What is the best way to show a code refactor before and after in slides?

The best way to show a code refactor before and after in slides is by building a multi-step sequence that seamlessly morphs between code blocks to highlight changes.

Do I need external dependencies to animate code blocks in Slidev?

No external dependencies are needed to animate code blocks in Slidev, as the Magic Move feature relies on standard Markdown frontmatter and requires only the built-in renderer.

Can I use magic-move to demonstrate JavaScript and TypeScript code evolution?

Yes, you can use magic-move to demonstrate JavaScript and TypeScript code evolution by creating animated sequences that visually morph progressive changes across languages.

How does Shiki Magic Move visualize diffs for tutorials?

Shiki Magic Move visualizes diffs for tutorials by smoothly morphing the differences between code states, making refactors and before or after comparisons easy to follow.