Browsers may place selected elements on separate layers and adjust their position or overlap in compositing. Transform and opacity animations can be handled there without repeating layout and paint.
The demo moves a translucent layer over a painted grid. Promoting everything to a layer costs memory, so use this approach where motion benefits from it.
When to use
When motion stutters, inspect whether layout, paint, or compositing repeats.