Skip to content

vue-doctor/performance/no-layout-property-animation ​

Use transform: translateX() or scale() instead — they run on the compositor and skip layout/paint

PropertyValue
CategoryPerformance
Default Severitywarning
Confidencehigh
FixableNo
Engineoxlint
Sincev1.0.0
Frameworksvue, nuxt
Test filesNot checked (which files)

Why it matters ​

Use transform: translateX() or scale() instead — they run on the compositor and skip layout/paint

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Animate compositor-friendly properties only. Replace animated width/height/top/left/margin with transform: translate()/scale() and opacity.


Rule source: vue-doctor/performance/no-layout-property-animation

Released under the MIT License.