fix(a11y): stop claude's mascot bouncing under reduced motion - #127
Merged
Conversation
The reduced-motion block exempted `.mascot-claude.is-animated *`, but claude-jump is on the wrapper itself, not a descendant β and `*` only matches descendants. Users with "reduce motion" on saw the arms, legs and eyes freeze while the whole figure kept bouncing, which reads as a stuck animation rather than a calm one. Name the wrapper explicitly, as omp, dsh and grok already do for their own wrapper-level loops. claude-jump's 0%/100% is the identity transform and the wrapper carries no base transform, so stopping the animation lands exactly on the resting pose β no shift. The other twelve mascots are unaffected: an audit of every `.mascot-*.is-animated/.is-clicked` rule that sets `animation` finds six wrapper-level ones (claude x2, dsh x2, grok, omp) and this was the only one missing from the exemption list. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015weU8hXkgz73A96UcHL7oS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
One line in
mascot.css: name.mascot-claude.is-animatedin theprefers-reduced-motionexemption list (plus a comment explaining why the bareselectors there are not redundant).
Why
The block exempted
.mascot-claude.is-animated *.*matches descendantsonly, and
claude-jumpis on the wrapper itself:So with "reduce motion" on, hovering Claude's card froze the arms, legs and
eyes while the whole figure kept bouncing β an infinite loop, which is exactly
the category the media query exists to stop. It reads as a stuck animation
rather than a calm one.
Why this is safe
claude-jump's0%/100%istranslateY(0) scale(1)β the identitytransform β so stopping it lands on the resting pose. No layout shift.
.mascot-claude*rules targetdescendants or the two state classes, so the block's
transition: nonehas nothing to clobber.
same reason. This closes the inconsistency.
the
<button>, outside this media block, so hovering still gives feedback.Is anything else affected?
No. I parsed the stylesheet and pulled every rule whose selector is exactly
.mascot-<agent>.is-animatedor.is-clickedand that setsanimationβi.e. every wrapper-level animation across all thirteen mascots:
claude-jumpclaude-peekdsh-breachgrok-tossomp-floatSix in total, and this was the only gap. Every other mascot animates
descendants only, which the existing
*selectors already cover. Re-runningthe audit after the change reports no unexempted wrapper animations.
Checks
npm run lintclean (183 files) Β·npm test34 files / 307 tests Β·npm run buildclean.