motion

Provides declarative React animations including gestures, scroll effects, and layout transitions.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/DITEKmax/rutcampustrack --skill motion-ditekmax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion
Source: https://github.com/DITEKmax/rutcampustrack/tree/main/.claude/skills/motion
Command: npx skills add https://github.com/DITEKmax/rutcampustrack --skill motion-ditekmax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires motion, framer-motion, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Motion provides a robust declarative animation toolkit for React that enables rich gestures, scroll effects, and layout transitions with high performance and predictable behavior.

Core Features & Use Cases

  • Gestures: drag, hover, tap, pan
  • Scroll-based animations and parallax effects
  • Layout animations and shared element transitions (layoutId)
  • SVG morphing and path animations
  • Performance-focused tooling (AnimatePresence, LazyMotion, domAnimation)

Quick Start

Install motion and begin using the motion component to animate elements in your React app.

Frequently Asked Questions about motion

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

FAQPage Schema
How do I create shared element transitions in React?

React scroll animations and parallax effects are built using declarative APIs that bind element transforms to scroll progress. This approach links viewport intersection directly to motion values to drive smooth scroll-based animations without manual scroll listeners.

How do I animate React component unmount during route transitions?

Animating React component unmount during route transitions requires AnimatePresence to manage exit animations before removal. This wrapper tracks departing components to ensure unmount animations complete before the DOM elements are actually destroyed.

What is the best way to handle drag and drop gestures in a React app?

Drag and drop gestures in a React app are handled through declarative drag controls attached directly to motion components. This method captures pan, drag, and tap interactions while automatically managing gesture state and constraints.

How do I optimize React animation performance for large web apps?

React animation performance for large web apps is optimized using LazyMotion and domAnimation to reduce bundle size. This tooling lazy-loads animation features dynamically, minimizing the performance overhead of complex layout transitions and gestures.

Does motion work with SVG path animations for morphing shapes?

Motion works with SVG path animations to morph shapes and animate path coordinates declaratively. It interpolates SVG attributes directly within React components to create smooth vector transitions without manual path calculation.