Performance

Animating layout properties

Animating width, height, top or left forces layout and paint every frame. transform and opacity skip both.

Growing a panel with width stutters on a busy page; scaleX(0.4 → 1) stays smooth, but squashes any text inside, so use it for bars, not content.

width
LayoutPaintComposite
scaleX
LayoutPaintComposite
Same growth: width re-runs layout and paint

One of 267 cards in the Design deck. Browse every card.