Performance: Transformable vs Repainting Props
Learn which properties are GPU-accelerated and which trigger expensive layout repaints.
The Rendering Pipeline
Browsers render in three stages: Layout (size + position) → Paint (pixels) → Composite (GPU layer merging). Animating properties that trigger earlier stages is expensive.
Layout-Triggering Properties
Changing these properties forces the browser to recalculate layout for potentially the entire page. Avoid animating them:
width,heightmargin,paddingtop,leftfont-sizedisplay
All lessons in this course
- Transition Property Duration and Timing
- Easing Functions: ease linear cubic-bezier
- Transitioning Multiple Properties
- Performance: Transformable vs Repainting Props