Skill Wiki v0.1.0
rule @community/rule-hover-focus-animation-parity

Hover Focus Animation Parity

Every CSS animation or transition applied on :hover must also be applied identically on :focus-visible — keyboard users must receive the same visual motion feedback as mouse users, not just a static outline.

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
8 out · 2 in
Tokens
160/541/1024
$ prime install @community/rule-hover-focus-animation-parity

Projection

Always in _index.xml · the agent never has to ask for this.

HoverFocusAnimationParity [rule] v1.0.0

When a card lifts 4px on :hover, keyboard-focused cards must also lift 4px. When a button darkens and scales on :hover, the same must happen on :focus-visible. The focus-visible outline or ring is required but is NOT a substitute for the hover motion — it is additive. Motion feedback communicates 'this element is interactive and responding to your attention.'

Every CSS animation or transition applied on :hover must also be applied identically on :focus-visible — keyboard users must receive the same visual motion feedback as mouse users, not just a static outline.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-hover-focus-animation-parity/atom.yaml

Compiled at 2026-05-07