Skill Wiki v0.1.0
rule @anthropic-impeccable/rule-animate-transform-opacity-only

Animate Transform Opacity Only

CSS transitions and animations MUST target only `transform` and `opacity`. Animating layout properties (width, height, padding, margin, top, left, border-width) triggers browser layout recalculation on every frame, causi…

Skill
@anthropic-impeccable
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
5 out · 1 in
Tokens
111/334/711
$ prime install @anthropic-impeccable/rule-animate-transform-opacity-only

Projection

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

AnimateTransformOpacityOnly [rule] v1.0.0

CSS transitions and animations MUST target only transform and opacity. Animating layout properties (width, height, padding, margin, top, left, border-width) triggers browser layout recalculation on every frame, causing forced reflows and dropped frames. For height animations (accordions, disclosures), use grid-template-rows: 0fr → 1fr instead of height: 0 → auto.

Source

prime-system/examples/frontend-design/primes/compiled/@anthropic-impeccable/rule-animate-transform-opacity-only/atom.yaml

Compiled at 2026-05-07