Layer composition in the chrome dev tools

半世苍凉 提交于 2019-12-01 11:36:09

The Compositing event in Timeline is always emitted while updating the animation frame and your former assumption is correct. To validate whether your animated div actually became the layer, look for the Paint events -- these are per layer and there should not be any paint events during the animation if one layer is transitioned relatively to another, provided layer contents do not change. Note also that in recent versions of Chrome (m30+), Timeline shows root of the layer associated with the Paint in event's popover.

Another way to check whether your animated element was promoted to a layer is experimental Layers panel (Enable DevTools experiments in about:flags, restart Chrome, then enable Layers panel in the Experiments tab of DevTools' settings).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!