concept

Animation profiling — CSS reference

Animation inspection can identify running animations, timeline positions and effects. A transform may be cheaper to animate than width, but neither the animation object nor a transform property proves compositor-only execution. Inspect actual traces and rendering behavior.

Formal Syntax & Structure

css syntaxcss
element.getAnimations()[0].currentTime = 500;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>animation-profiling</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{width:100px;height:30px;animation:slide 1s linear both paused}@keyframes slide{from{transform:translateX(0)}to{transform:translateX(100px)}}</style><body><div id="a">Sample</div></body></html>
CSS Reference