返回 html-video
index.html
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=1920, height=1080" />
6 <title>NYT Graph</title>
7 <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
8 <style>
9 * {
10 margin: 0;
11 padding: 0;
12 box-sizing: border-box;
13 }
14 html,
15 body {
16 margin: 0;
17 width: 1920px;
18 height: 1080px;
19 overflow: hidden;
20 background-color: #faf9f6;
21 }
22 </style>
23 </head>
24 <body>
25 <div
26 id="root"
27 data-composition-id="main"
28 data-start="0"
29 data-duration="15"
30 data-width="1920"
31 data-height="1080"
32 >
33 <div
34 id="nyt-chart-comp"
35 data-composition-id="nyt-chart"
36 data-composition-src="compositions/nyt-chart.html"
37 data-start="0"
38 data-duration="15"
39 data-track-index="0"
40 data-width="1920"
41 data-height="1080"
42 ></div>
43 </div>
44
45 <script>
46 window.__timelines = window.__timelines || {};
47 const tl = gsap.timeline({ paused: true });
48 window.__timelines["main"] = tl;
49 </script>
50 </body>
51 </html>
52
52 lines HTML