motion

Create declarative animations and interactive gestures for React and JavaScript applications.

5|3|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/mikkelkrogsholm/dev-skills --skill motion-mikkelkrogsholm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion
Source: https://github.com/mikkelkrogsholm/dev-skills/tree/main/motion
Command: npx skills add https://github.com/mikkelkrogsholm/dev-skills --skill motion-mikkelkrogsholm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex, production-ready animations in React and JavaScript applications, making user interfaces more engaging and dynamic.

Core Features & Use Cases

  • Declarative Animations: Define animations using simple props like initial, animate, and exit.
  • Gestures & Layout Animations: Easily implement hover, tap, drag gestures, and animate layout changes automatically.
  • Use Case: Create smooth page transitions, animate elements on scroll, or build interactive gesture-based controls within your web application.

Quick Start

Use the motion skill to animate the opacity of an element to 1.

Frequently Asked Questions about motion

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

FAQPage Schema
How do I create declarative animations in React applications?

Declarative animations in React applications are created using simple props like `initial`, `animate`, and `exit` to define element transitions. This approach simplifies building production-ready, dynamic user interfaces without complex logic.

What is the best way to add scroll-triggered animations and page transitions in JavaScript?

Scroll-triggered animations and page transitions in JavaScript are best handled using declarative variants and AnimatePresence features. These tools manage mounting and unmounting animations automatically for smooth UI changes.

Can I use this to implement drag and tap gestures for interactive UI elements?

Yes, you can implement drag and tap gestures for interactive UI elements using the built-in gesture recognition features. It supports hover, tap, and drag interactions to create engaging, gesture-based controls.

Do I need any external dependencies to animate layout changes in my web app?

No external dependencies are required to animate layout changes in your web app. The motion library automatically animates layout shifts within React and JavaScript environments natively.

Why use declarative variants for React UI animations instead of other approaches?

Declarative variants for React UI animations allow you to define multiple animation states cleanly through props rather than writing imperative logic. This simplifies orchestrating complex transitions across components.

When should I use AnimatePresence for React exit animations?

AnimatePresence should be used for React exit animations when you need elements to animate out of the DOM smoothly before unmounting. It ensures exit animations complete before components are removed.