Things worth knowing.
Facts about the browser that change how you build for it.
You get 16.7 milliseconds
At 60fps that is the entire budget for a frame — your JavaScript, style, layout, paint and composite. Miss it and the browser drops the frame. There is no partial credit.
Layout is the expensive part
Animating width, top or margin forces the browser to recalculate geometry every frame. Transform and opacity do not: they are handled by the compositor, which is why almost everything here is one or the other.
Reduced motion is a real setting
prefers-reduced-motion has shipped in every major browser since 2019. People with vestibular disorders use it. Respecting it costs one media query and is not optional.
Dark backgrounds band
Eight-bit colour has 256 steps per channel. A gradient across a near-black page crosses very few of them, so it bands visibly. A little film grain hides it — which is why the grain on this site is doing engineering work, not just styling.
None of this is exotic. It is just the part that gets skipped.