Debian Codegraph @

testing/web-platform/mozilla/tests/web-animations/web-animations-print.html

raw
1 <!DOCTYPE HTML>
2 <html>
3 <link rel="help" href="https://drafts.csswg.org/web-animations/">
4 <link rel="match" href="web-animations-print-ref.html">
5 <title>Web animation</title>
6 <p id="anim" style="color: olive">blue with animation support; olive without</p>
7 <script>
8 const animationData = [
9 {"color":"#0000FF"},
10 {"color":"#0000FF"}
11 ];
12
13 const animationTiming = {
14 "duration":1,
15 "iterations":Infinity
16 };
17
18 let element = document.getElementById("anim");
19 element.animate(animationData, animationTiming);
20 </script>