 the delayed animation is
    // started.
    const animations = document.getAnimations();
    Promise.all([animations[0].ready, animations[1].ready]).then(() => {
      waitForAnimationFrames(3).then(() => {
        takeScreenshot();
      });
    });
  </script>
</body>

</html>
