17 of 25
Choose animation properties with layout in mind
Use transform and opacity when content can move without rearranging its neighbors. If space must open in the layout, measure the cost of animating the real geometry.
DotranslateY + opacity Translate and fade · 220ms
Don’theight Height · 220ms — changes layout
Compare visual travel with a height change. A performance trace can show their layout and paint costs.
Reduced motion: end states only, as your setting asks.
Before you ship
- Are surrounding elements in the right places throughout?
- Can the keyboard still reach each visible control?
- What does the performance trace show while other work runs?