summaryrefslogtreecommitdiffstats
path: root/devtools/client/animationinspector/test/doc_modify_playbackRate.html
blob: 7b83f1c38a9ae30cf2aa07f0a6d023932f03ee10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <style>
  div {
    width: 50px;
    height: 50px;
    background: blue;
    animation: move 20s 20s linear;
    animation-fill-mode: forwards;
  }

  @keyframes move {
    to {
      margin-left: 200px;
    }
  }
  </style>
</head>
<body>
  <div></div>
  <div class="rate"></div>
  <script>
    "use strict";

    var el = document.querySelector(".rate");
    var ani = el.getAnimations()[0];
    ani.playbackRate = 2;
  </script>
</body>
</html>