The problem
The video opens an example invoices app. Tap the Acme Studio row and a side drawer opens on the right, while the list squeezes left to make room. This version grows the drawer's width on every frame, and each new width makes the browser measure and place every box again: that is the layout. A frame is one still picture, and smooth motion needs 60 a second, about 16.7 ms each. The work takes too long, so 7 frames are dropped and the drawer stutters.
The fix
Same drawer, same timing. Move it, never resize it.
- Park it. Build the drawer once at its full size and park it past the right edge of the screen, there but out of sight.
- Slide it. Move it in with CSS transform, which moves things without changing their size.
- Fade it. Fade it in with opacity, which sets how see-through it is.
Why it works
Transform moves the drawer without resizing it, so the layout never changes. Nothing on the page is measured again: the list stays where it was and the drawer slides in over it. Opacity only changes how see-through the drawer is. In the video, every frame of the new open lands under the 16.7 ms line, and none are dropped.
How to apply it
Before you animate a drawer, check which properties move. Move with transform, fade with opacity, and leave width and height alone. If it has to open, build it at its final size first and park it out of sight until it is needed.



