| <div id="target" style="width: 100px; height: 100px; background-color: black;"></div> |
| const opacityAnimation = new Animation(new KeyframeEffect(document.getElementById("target"), [ |
| opacityAnimation.startTime = 0; |
| opacityAnimation.effect.updateTiming({ duration : 1000 }); |
| const widthAnimation = new Animation(new KeyframeEffect(document.getElementById("target"), [ |
| widthAnimation.startTime = 0; |
| widthAnimation.effect.updateTiming({ duration : 1000 }); |
| document.getElementById("results").innerText = internals.layerTreeAsText(document); |