Skip to content

Performance

Frame rate (FPS)

Frames drawn per second. 60fps is the baseline for smooth motion; 120fps on newer displays.

12 fps
60 fps

60fps budgets 16.7ms per frame; 120fps displays halve the budget to 8.3ms.

Jank

Visible stutter when the browser drops frames because it can't keep up with the animation.

Stutters mid-way

Missing frames creates visible stuttering jumps in otherwise smooth motion.

Dropped frame

A frame the browser missed its deadline to draw, causing a tiny hitch in motion.

24ms > 16.7ms

Exceeding the 16.7ms budget misses the display refresh deadline and drops a frame.

Compositing

Letting the GPU move or fade an element on its own layer without redoing layout or paint.

Page underneath
GPU Layer

GPU compositing moves and fades layers without re-running Layout or Paint.

will-change

A CSS hint that an element is about to animate, so the browser can promote it to its own layer ahead of time.

Promoted layer readywill-change: transform

Hints to the browser to promote an element before animation begins.

Layout thrashing

Animating properties like width, height, top, or left that force the browser to recalculate layout every frame, causing jank.

height
Neighbor below

Animating height pushes neighbors every frame; transform avoids layout recalculation.

Transition property

Which CSS properties animate. Animating all properties can accidentally catch layout ones and cause jank. Opacity and transform are the safe pair.

GPU compositing

Opacity and transform animations run on the GPU and avoid triggering layout recalculation, making them smooth even on lower-end devices. Animating properties like width, height, padding, or top forces the browser to recalculate layout on every frame. The performance difference is significant.