<!doctype html>
<html lang="en-US">

<head>
  <meta charset="utf-8">
  <title>Web Animations API replace indefinite animations</title>
  <style>
    html {
      height: 100%;
    }

    body {
      margin: 0;
      height: inherit;
    }

    div {
      width: 150px;
      height: 100px;
      background-color: red;
      border: 10px solid black;
      border-radius: 10px;
    }

    p {
      position: absolute;
      width: 300px;
      right: 10px;
      bottom: 10px;
    }
  </style>
</head>

<body>