blob: 9c8cdabc9da65e9f069155ab8e7304e7b36e871d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<script type="text/javascript">
const targetWindow = window.top.a;
const element = targetWindow.document.getElementById('target');
const keyframes = { opacity: [1, 0.2] };
const options = {
duration: 1000,
// Use this document's timeline rather then the timeline of the
// element's document.
timeline: document.timeline,
fill: 'forwards'
};
element.animate(keyframes, options);
targetWindow.runTest();
</script>
</html>
|