forked from share121/f1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
214 lines (213 loc) · 7.04 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="zh-CN" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>F1 赛车手出场</title>
<meta
name="description"
content="耗时 4 天,我用纯 CSS 动画实现了 F1 赛车手出场动画。"
/>
<meta name="keywords" content="F1,赛车,动画,出场,出现" />
<script
charset="UTF-8"
id="LA_COLLECT"
src="/plugins/js-sdk-pro.min.js"
defer
></script>
</head>
<body>
<div class="left">
<div class="stage-container">
<div id="stage">
<canvas class="canvas" width="3840" height="2160"></canvas>
<div class="video-shade"></div>
<main class="main">
<div class="text-shade"></div>
<div class="background-point"></div>
<div class="red-triangle"></div>
<img class="person" src="" alt="person" />
<div class="content">
<div>
<img class="national-flag" src="" alt="national flag" />
<div class="prize"></div>
</div>
<div>
<div class="name">
<span class="name-normal"></span> <br />
<span class="name-big big-text"></span>
</div>
<div class="hr"></div>
<img class="sponsor-1" src="" alt="sponsor 1" />
<div class="score big-text"></div>
</div>
<div class="bottom">
<div class="sponsor-container">
<img class="sponsor-2" src="" alt="sponsor 2" />
<div class="vertical-dividing-line"></div>
<img class="sponsor-3" src="" alt="sponsor 3" />
</div>
<div class="ads"></div>
</div>
</div>
<div class="vignetting"></div>
<div class="rect-2"></div>
<div class="rect-1"></div>
</main>
</div>
</div>
<div class="video-controls">
<i class="start bi bi-play-fill" title="播放/暂停">
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
fill="currentColor"
class="bi bi-play-fill"
viewBox="0 0 16 16"
>
<path
d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"
/>
</svg>
</i>
<input
class="range form-range"
title="视频进度"
type="range"
min="0"
max="30000"
step="0.001"
value="0"
/>
<div>
<span class="time">00:00</span>/<span class="video-total-time"
>00:00</span
>
</div>
<label class="input-group" style="width: fit-content">
<span class="input-group-text">倍速</span>
<input
type="number"
name="倍速"
class="speed-rate form-control"
value="1"
max="16"
min="0.1"
step="0.1"
/>
</label>
</div>
</div>
<video loop muted id="video" src=""></video>
<audio loop id="audio" src=""></audio>
<div class="controls">
<fieldset class="card mb-3">
<div class="card-body">
<legend class="card-title">导出</legend>
<label class="input-group mb-3">
<span class="input-group-text">动画延迟</span>
<input
type="number"
name="动画延迟"
class="delay-time form-control"
min="0"
step="0.001"
/>
<span class="input-group-text">秒</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">人物间延迟</span>
<input
type="number"
name="人物间延迟"
class="person-delay form-control"
min="0"
step="0.001"
/>
<span class="input-group-text">秒</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">时长</span>
<input
type="number"
name="时长"
class="total-time form-control"
min="0"
step="0.001"
/>
<span class="input-group-text">秒</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">帧率</span>
<input type="number" name="帧率" class="fps form-control" />
<span class="input-group-text">帧/秒</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">开始位置</span>
<input
type="number"
name="开始位置"
value="0"
class="start-pos form-control"
/>
<span class="input-group-text">帧</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">视频宽度</span>
<input
type="number"
name="视频宽度"
class="video-width form-control"
/>
<span class="input-group-text">px</span>
</label>
<label class="input-group mb-3">
<span class="input-group-text">视频纵横比</span>
<input
type="text"
name="视频纵横比"
class="video-aspect-ratio form-control"
/>
</label>
<div class="mb-3">
<button type="button" class="export btn btn-primary">导出</button>
<span class="cur-frame">0</span>/<span class="total-frame">0</span>
</div>
<label class="input-group">
<span class="input-group-text">运行命令</span>
<textarea
spellcheck="false"
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="cmd form-control"
></textarea>
</label>
</div>
</fieldset>
<fieldset class="card mb-3">
<div class="card-body">
<legend class="card-title">导入</legend>
<button type="button" class="import btn btn-primary">导入</button>
<a
href="https://api.hanximeng.com/lanzou/?url=https://ww0.lanzn.com/iFpR924lr4xc&type=down"
download="模板.zip"
target="_blank"
class="btn btn-link"
>
下载模板文件
</a>
</div>
</fieldset>
<a
href="https://github.com/share121/f1"
target="_blank"
class="btn btn-link d-block m-auto"
>
在 GitHub 上参观我的仓库</a
>
</div>
<script defer type="module" src="/src/main.ts"></script>
</body>
</html>