Skip to content

Animation & Motion

Motion Rules

Free

Add motion only to explain a change: 150–250ms, ease-out, and a reduced-motion path.

Difficulty foundational
Version 1.0.0
Verified 2026-11-15
Updated 2026-11-12

Purpose

Replace decorative animation with a small set of rules an agent can follow.

Procedure

--- name: motion-rules description: Add motion only to explain a change: 150–250ms, ease-out, and a reduced-motion path. ---

Motion Rules

Purpose

Replace decorative animation with a small set of rules an agent can follow.

Procedure

Motion explains that something moved, opened, or finished. It does not entertain.

Defaults:

  • Duration 150–250ms for UI. Longer only for a large spatial change the user must track, and never above 400ms.
  • Ease-out for entrances, ease-in for exits. No bounce, elastic, or overshoot on product chrome.
  • Animate opacity and transform. Do not animate width, height, top, or margin (they reflow layout).
  • One moving thing at a time in a control. Do not stagger every list item on a working screen.

Reduced motion:

  • Wrap non-essential transitions in a prefers-reduced-motion: reduce check. Under reduce, snap to the end state.
  • Never autoplay a looping background.

Do not add a library for a transition CSS can do. If the project already uses a motion library, use that library's existing duration tokens instead of inventing a second system.

Do not animate on a timer that continues after unmount.

Example requests

1. Settle a menu

Request: Open and close the navigation panel using Motion Rules. No bounce. Expected: A short opacity/transform transition that is disabled under reduced motion.

Dependencies

None. Work in the repository that is already open. Do not add packages unless the procedure names one.

Compatibility

This document follows the Agent Skills layout (a folder named motion-rules containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it. Last verified 2026-11-15.

Example prompts

Settle a menu

Open and close the navigation panel using Motion Rules. No bounce.

Expected: A short opacity/transform transition that is disabled under reduced motion.

Choose the agent

This skill is installed for one agent at a time. Pick the section you are using.

Related

  • Press Feedback

    Give buttons and rows a pressed state that does not shift layout.

  • Reduced Motion

    Audit animations and provide an equivalent instant state when the user asks for less motion.

  • Enter and Exit

    Mount and unmount panels so they fade or slide without leaving invisible focus traps.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.