motion-patterns

Provide standardized animation patterns for React and Next.js using motion/react.

5|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/mohamedgshoaib/reway --skill motion-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion-patterns
Source: https://github.com/mohamedgshoaib/reway/tree/main/.agents/skills/motion-patterns
Command: npx skills add https://github.com/mohamedgshoaib/reway --skill motion-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires motion/react, next/navigation.

What problem does it solve?

This skill solves the inconsistency and complexity of implementing UI animations in React and Next.js by providing a standardized, token-driven library of motion patterns that ensure accessibility and performance.

Core Features & Use Cases

  • Standardized Animation Library: Access pre-built patterns for buttons, modals, toasts, staggers, and page transitions.
  • Token-Based Design: Ensures all animations adhere to design system constraints by importing from motion-foundations rather than using raw values.
  • Accessibility & Performance: Includes built-in support for focus traps, reduced motion, and SSR-safe rendering.

Quick Start

Use the motion-patterns skill to implement a staggered list animation for the current component using the standard motion tokens.

Frequently Asked Questions about motion-patterns

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

FAQPage Schema
How do I implement consistent UI animation patterns in React and Next.js?

Consistent UI animation patterns in React and Next.js are implemented using a standardized, token-driven library that provides pre-built motion patterns for modals, toasts, and page transitions. This ensures accessibility and performance across your application.

How do I animate page transitions in Next.js without causing layout shifts?

To animate page transitions in Next.js without layout shifts, use standardized AnimatePresence usage and layout animation constraints. This approach enforces strict design token usage to maintain visual stability during route changes.

Does this React animation library support accessibility and reduced motion preferences?

Yes, this React animation library supports accessibility and reduced motion preferences by including built-in support for focus traps, reduced motion settings, and SSR-safe rendering to ensure an inclusive user experience.

What is the best way to enforce design system constraints when adding motion to UI components?

The best way to enforce design system constraints when adding motion to UI components is by using a token-based design approach. This ensures all animations import from motion-foundations rather than using raw values.

Can I use motion/react for scroll-linked animations and modals in a production environment?

Yes, you can use motion/react for scroll-linked animations and modals in a production environment. It provides a library of production-ready animation patterns that ensure performance and accessibility.