Revision control

1
<!DOCTYPE html>
2
<body>
3
<style>
4
5
@keyframes anim {
6
from { margin-left: 0 }
7
to { margin-left: 100px }
8
}
9
10
</style>
11
<script>
12
13
const target = document.body.appendChild(document.createElement("div"));
14
target.style.animation = "anim 1s";
15
16
const animation = target.getAnimations()[0];
17
18
const effect = animation.effect;
19
effect.target = null;
20
effect.getKeyframes();
21
22
</script>
23
</body>