Reduced motion first terminal animation

From ychampion/cskill-agents · View interactive version

Reduced motion first terminal animation is an AI agent skill from the GitHub repository ychampion/cskill-agents. Pause terminal animations when the user requests reduced motion, then resume cleanly without tearing the rest of the UI.

How to use this skill

Skill file

SKILL: Reduced-Motion First Terminal Animation

Domain: terminal-ui

Trigger: Build any animation that should stay dormant until the user explicitly opts into motion.

Source Pattern: Distilled from reviewed terminal rendering, layout, animation, and accessibility implementations.

Core Method

Read the local reduced-motion preference before spawning timers and treat null as “paused.” Hook animations into a single clock that can unregister itself whenever the animation is hidden, so the loop never races multiple independent timers while respecting accessibility.

Key Rules

Example Application

When animating a loading spinner in a toolbar, wire the spinner to the shared clock and keep it frozen until the user unsets prefers reduced motion; the rest of the layout retains its state, and the spinner returns to the proper frame without rewinding.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.