state-changes

state-changes is a skill for Claude Code, Codex from dylantarre/animation-principles. It costs 32 tokens per session (693 once invoked), scanned A, original, MIT.

A guide to animations where an element changes while staying in place, such as toggles, accordions, checkboxes, and button states.

In plain words
What is it for?
Use it to design transitions between rest, active, disabled, expanded, checked, and other interface states.
Why use it?
It helps state changes remain clear and focused on the control being changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design transitions between rest, active, disabled, expanded, checked, and other interface states.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dylantarre/animation-principles/state-changes
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.

Any agent
npx skills add dylantarre/animation-principles --skill state-changes
Clone the repo
git clone --depth 1 https://github.com/dylantarre/animation-principles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for state-changes

README.md
[![agentmods](https://agentmods.dev/badge/skills/dylantarre/animation-principles/state-changes/github.svg)](https://agentmods.dev/skills/dylantarre/animation-principles/state-changes)
Your own site
<a href="https://agentmods.dev/skills/dylantarre/animation-principles/state-changes"><img src="https://agentmods.dev/badge/skills/dylantarre/animation-principles/state-changes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for state-changes

Your own site · 80×15
<a href="https://agentmods.dev/skills/dylantarre/animation-principles/state-changes"><img src="https://agentmods.dev/badge/skills/dylantarre/animation-principles/state-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 16 Sept 2026
  • Snyk pass 16 Sept 2026
How audits are shown
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.1 $0.00032 $0.00693
Opus 5.5 $0.00013 $0.00277
Sonnet 5.5 $0.00006 $0.00139
Haiku 4.5 $0.00003 $0.00069

Measured 3mo ago against content hash f6a65edc59fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

state-changes 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 3mo 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.

skills/05-by-animation-type/state-changes/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

State Change Animations

Apply Disney's 12 principles when elements transform without leaving.

Principle Application

Squash & Stretch: Elements compress before expanding. A toggle switch squashes 5% before sliding.

Anticipation: Wind up before the change. Slight reverse movement (2-3px) before expanding.

Staging: Keep transformations centered on user focus. Don't let state changes distract from the interaction point.

Straight Ahead vs Pose-to-Pose: Define exact states. Button has rest, hover, active, disabled - each precisely designed.

Follow Through & Overlapping: Parts transform at different rates. Icon rotates before label fades in.

Slow In/Slow Out: Use ease-in-out for bidirectional changes: cubic-bezier(0.4, 0, 0.2, 1).

Arcs: Rotating elements follow natural arcs. Chevrons rotate on their center point, not linearly.

Secondary Action: Pair the primary change with supporting motion. Toggle sliding + color shift + icon swap.

Timing:

  • Micro-states: 100-150ms (checkbox tick, radio fill)
  • Standard states: 150-250ms (toggles, accordions)
  • Complex states: 250-400ms (multi-part transformations)

Exaggeration: Overshoot slightly on state changes. Toggle goes 2px past, then settles.

Solid Drawing: Maintain element integrity during transformation. No distortion that breaks visual consistency.

Appeal: State changes should feel satisfying. Users clicked with intent - reward that intent.

Timing Recommendations

State Change Duration Easing Notes
Checkbox 150ms ease-out Tick draws in
Toggle Switch 200ms ease-in-out Overshoot slightly
Radio Button 150ms ease-out Scale in from center
Accordion 250ms ease-in-out Height + rotation
Tab Switch 200ms ease-in-out Indicator slides
Button Active 100ms ease-out Scale to 0.97
Card Expand 300ms ease-in-out All properties together

Implementation Pattern

Read the full file on GitHub · 84 lines

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. 3mo ago First seen · 84 lines · 32 tokens per session scan A f6a65edc59fc

Subscribe to this mod's changes

state-changes is a skill published in the GitHub repository dylantarre/animation-principles (735 stars, last pushed 11mo ago), licensed MIT. It adds 32 tokens to every session and 693 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

state-changes compared with skills from other repositories

state-changes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
state-changesdylantarre/animation-principlesSkill73511mo agoMITA32Claude Code, Codex
cuboid-carouselheygen-com/hyperframesSkill93ktodayApache-2.0A45Claude Code
code-slice-heroheygen-com/hyperframesSkill93ktodayApache-2.0A44Claude Code
canopy-part-titleheygen-com/hyperframesSkill93ktodayApache-2.0A36Claude Code
animation-vocabularyemilkowalski/skillsSkill62kyesterdayMITA98Claude Code
remove-animationsemilkowalski/skillsSkill62kyesterdayMITB127Claude Code
htmlplannotator/effective-htmlSkill4.4k7d agoMITA107Claude Code, Codex