agentleFS
soilmasssoilmass/motion-design-agent/skills/accessibility/SKILL.md

accessibility

Skill7 starsChanged 10 months agoMITView on GitHub

Motion accessibility standards and reduced motion implementation. Use when ensuring WCAG compliance, implementing prefers-reduced-motion, or creating accessible animation alternatives. References WCAG 2.1 and design system accessibility guidelines.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use author-contributions, tool-rename-deprecation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    author-contributions

    Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.

    Also in 7 projects that use this

  • gitpod-ioSkill

    tool-rename-deprecation

    Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

    Also in 5 projects that use this

  • DepressionCenterSkill

    project-preferences

    Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.

    Also in 6 projects that use this

  • MicrosoftSkill

    chat-perf

    Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

    Also in 5 projects that use this

  • DepressionCenterSkill

    create-media-pack

    Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.

    Also in 5 projects that use this

  • +7 more from microsoft

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 112 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use short-1/short-2 durations

    line 44

“Common” is measured: kept by at least 6 in 10 of the 112 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Motion Accessibility

WCAG 2.1 compliance and reduced motion implementation.

Standards Reference

StandardDocumentation
WCAG 2.1w3.org/WAI/WCAG21/Understanding/animation-from-interactions
WCAG 2.3.3Animation from Interactions (AAA)
M3 Accessibilitym3.material.io/styles/motion/accessibility

Requirements

WCAG 2.3.3 (AAA)

Motion can be disabled unless essential to functionality.

Key Rules

  1. Honor prefers-reduced-motion — Always check user preference
  2. No flashing > 3Hz — Seizure risk
  3. Provide pause/stop — For auto-playing content
  4. Essential motion can remain — But reduce intensity

Who Is Affected

  • ~35% of adults 40+ have vestibular dysfunction
  • Triggers: parallax, zooming, spinning, bouncing
  • Symptoms: dizziness, nausea, disorientation

Reduced Motion Strategy

Remove

  • Decorative animations
  • Parallax effects
  • Auto-playing animations
  • Continuous motion

Reduce

  • Use short-1/short-2 durations
  • Minimize travel distance
  • Remove overshooting/bouncing

Replace

  • Slide → Fade
  • Scale → Opacity
  • Complex → Simple state change

Retain

  • Essential feedback (simplified)
  • State indicators
  • Focus visibility

Implementation

CSS

/* Disable all motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Better: Provide alternatives */
@media (prefers-reduced-motion: reduce) {
  .slide-in {
    animation: none;
    opacity: 1;
  }
}

JavaScript

const prefersReducedMotion = window.matchMedia(
  '(prefers-reduced-motion: reduce)'
).matches;

const getAnimation = () => prefersReducedMotion
  ? { opacity: [0, 1], duration: 100 }  // Fade only, short
  : { opacity: [0, 1], y: [20, 0], duration: 250 };  // Full animation

React (Framer Motion)

import { useReducedMotion } from 'framer-motion';

const Component = () => {
  const shouldReduceMotion = useReducedMotion();

  return (
    <motion.div
      animate={{ opacity: 1, y: shouldReduceMotion ? 0 : 20 }}
      transition={{ duration: shouldReduceMotion ? 0.1 : 0.25 }}
    />
  );
};

Alternatives Table

Full MotionReduced AlternativeDuration
Slide + fadeFade onlyshort-2 (100ms)
Scale from 0.5Scale from 0.95short-2 (100ms)
Spring bounceease-out, no overshootshort-3 (150ms)
Container transformCross-fademedium-1 (250ms)
ParallaxStatic or subtle opacity-

Safe Animations (Always OK)

  • Opacity transitions
  • Color transitions
  • Border/outline changes
  • Very short durations (<100ms)
  • User-initiated animations

See references/wcag-requirements.md for full WCAG text. See references/reduced-motion-alternatives.md for complete mapping.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.