Animate transform and opacity—leave layout alone
Why composited properties keep animations at 60–120fps even on mid-tier hardware.
Properties like width, height, top, and mask-position trigger layout or paint work on the CPU every frame.
- Use
transform: translate3d(...)orscale(...)for movement and press feedback. - Use
grid-template-rows: 0fr -> 1frinstead ofmax-heighthacks for disclosures. - Choose
ease-outcurves (cubic-bezier(0.22, 1, 0.36, 1)) for elements entering the screen so they feel responsive immediately.