State Changes
Disney-principled motion guidance for in-place element transformations like toggles, accordions, and checkbox states.
- CCM score
- 54 of 100
- Quality grade
- Quality grade B, 82 of 100
- skills.sh installs
- 617
- GitHub stars
- 753
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers in-place state changes such as toggle switches, accordions, checkboxes, radio buttons, tabs, and button states
- Applies Disney's 12 animation principles, including squash and stretch, anticipation, overshoot, and secondary action
- Provides duration and easing guidance per state, from 100ms micro-states to 300ms card expansion
- Includes CSS patterns for toggles and grid-based accordions, plus a rule that reverse animations mirror forward ones
Quality grade
- Safety25% of the grade100
The text is a benign CSS animation guide with no attempts to steer graders, hide behavior, or move data.
- Tool boundary15% of the grade80
Declares no allowed-tools in its frontmatter. No scripts: it teaches a procedure. It is a procedural design guide teaching how to animate state changes, with no bundled code tool.
- Workflow quality25% of the grade60
Craft grade 60 of 100 for specificity, expertise, examples, economy and scope.
- Discoverability10% of the grade83
Name state-changes is lowercase with hyphens. Description of 161 characters. The description says when to use it with examples, but gives no explicit when-not-to-use guidance.
- Provenance and upkeep15% of the grade75
Last push 11 months ago. MIT license. Owner account 13 years old.
- Portability10% of the grade100
Relative paths only.
Rubric 2026-12.5 · graded December 4, 2026How we grade
Install
$ npx -y skills add dylantarre/animation-principles --skill state-changes -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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)
Details
- Repository
- github.com/dylantarre/animation-principles
- Categories
- Animation & Motion, Frontend & UI Code
- License
- MIT
- First seen
- Jun 3, 2026
Questions
What does the state-changes skill do for animation?
The state-changes skill applies Disney's 12 principles of animation to elements that transform in place, such as toggle switches, expanding accordions, checkbox animations and button states. It gives timing and easing guidance, for example 150 to 250 milliseconds for standard states and a 200 millisecond toggle switch with slight overshoot. It also includes CSS patterns for a toggle and an accordion.
How do I install the state-changes skill?
Run npx -y skills add dylantarre/animation-principles --skill state-changes -y in your project to install it. Once installed, the agent can apply these state change animation rules when you work on in-place transformations.
When should I use the state-changes skill instead of an entering or exiting animation skill?
Use this skill when an element transforms without leaving the screen, such as a toggle knob sliding or a chevron rotating on its center point. Its guidance focuses on defined rest, hover, active and disabled states, and on making each state change reversible so the animation back is the inverse of the one forward. It is aimed at interactive UI elements that change state in place.
Which skills lead the Animation & Motion category, and where does state-changes stand?
Within Animation & Motion, the other top skills include remotion-render, hyperframes-registry, hyperframes-animation, remotion-best-practices and hyperframes-core. The state-changes skill sits alongside them and focuses narrowly on transformations that happen in place, rather than on video rendering or general animation frameworks.
More from dylantarre/animation-principles
All 144- Comfort Safety616
- Professionalism Credibility616
- Popmotion615
- Responsive Adaptive615
- Implementation Debugging613
- Technical Constraints613
- Friendliness Approachability612
- Motion Sickness612
- Universal Industry611
- Deliberate 1200 2000ms610
- Large 500 800ms610
- Medium 300 500ms610
- Trust Reliability610
- Universal Tool610
- Product Manager609
- Universal Elements609
- Small 200 300ms608
- Universal Practitioner608
- Universal Solutions608
- Universal Fallback607
- Accessibility Issues606
- Instant 0 100ms605
- Ux Friction605
- Media Publishing602
Similar to State Changes
More Animation & Motionsmall-200-300msdylantarre/animation-principles608 installsMotion guidance for 200-300ms UI transitions like modals, card expansions, and navigation slides.
micro-interactionsdylantarre/animation-principles1.6K installsApplies Disney's 12 animation principles to small UI feedback moments like buttons, toggles, and badges.
motion-designlottiefiles/motion-design-skill31.2K installsMotion design principles and timing rules for UI animations, transitions, micro-interactions, and loading states.
animation-principlesowl-listener/designer-skills2.8K installsPractical UI motion guidance covering easing, duration tiers, stagger, and accessibility for single animations.
transitions-devjakubantalik/transitions.dev28.4K installsProduction-ready CSS transitions for web apps, with 36 portable snippets, each with a reduced-motion guard.