animate

A command for adding purposeful motion to interface elements with set durations, easing, and reduced-motion support. Reduced-motion support limits animation for people whose device settings request less movement.

In plain words
What is it for?
Use it to define CSS animation tokens, animate hovers, panels, modals, lists, or page transitions, and add reduced-motion fallbacks.
Why use it?
It prevents random or distracting animation and provides safer behavior for users who are sensitive to motion.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/dragoon0x/canon/animate
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/canon
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00459
Opus 5 $0.00010 $0.00230
Sonnet 5 $0.00004 $0.00092
Haiku 4.5 $0.00002 $0.00046

Measured 2d ago against content hash bbef56e98e48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

animate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

source/commands/animate.md · 47 lines

What it actually says

/animate

Apply CANON motion rules to a component or page. Not "sprinkle animations on it" — motion with purpose, within the 100–600ms envelope.

What this does

  1. Read canon-motion to ground every decision.
  2. Identify which elements should animate and which should not. Most things should not.
  3. Pick the correct category per element:
    • Micro (100–200ms): hovers, focus, state flips
    • Short (200–350ms): tooltips, small panels, reveals
    • Medium (350–500ms): modals, drawers, page transitions
    • Long (500–600ms): rare; hero moments, onboarding only
  4. Match easing to intent:
    • Entrance → ease-out
    • Exit → ease-in
    • Through-movement → ease-in-out
    • Never ease (browser default is vague) and never bounce/elastic for UI.
  5. Stagger lists with 30–120ms delays, total cap 500ms.
  6. Wrap every non-essential animation in @media (prefers-reduced-motion: no-preference) or honor prefers-reduced-motion: reduce with an opacity-only fallback.
  7. Emit CSS tokens first (--duration-short, --ease-out-cubic), then apply.

Output

  • List of animated elements with duration and easing.
  • CSS tokens block.
  • Keyframes and transitions.
  • Reduced-motion block.
  • One line per element explaining why it animates.

Anti-patterns to reject

  • Anything over 600ms for routine UI.
  • Bounce/elastic on functional elements.
  • Animating width, height, top, left when transform/opacity works.
  • Auto-playing hero animations on every page load.
  • Skeletons shimmering faster than 1000ms (looks twitchy).

Success criteria

Every animation survives the question "what would break if this were instant?" If nothing breaks, it probably shouldn't animate.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 47 lines · 21 tokens per session scan A bbef56e98e48

Subscribe to this mod's changes

animate is a command published in the GitHub repository Dragoon0x/canon (5 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 459 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.