-
Notifications
You must be signed in to change notification settings - Fork 2
/
card.html
331 lines (320 loc) · 17 KB
/
card.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<title>哈哈2</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="New Future" />
<link rel="stylesheet" type="text/css" href="assets/css/talk.css" />
<style type="text/css">
body {
background: darkgrey;
width: 100%;
overflow: hidden;
}
/* @media screen and (min-width:800px) {
body {
margin: 50px;
padding: 50px;
}
}*/
@media screen and (max-width:800px) {
body {
margin-top: 50px;
}
main,#main{
padding-top: 30%;
margin-top: 10%;
}
}
main,#main{
width: 60%;
margin: 10% 20% 20% 10%;
padding: 5%;
}
</style>
</head>
<body>
<main id="main">
<div id="talk1" class="talk active">
<span class="item">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
<path d="M11,47.84c0.33,9.779,11.921,9.065,12.306,8.35c0.385-0.714,1.538-1.209,1.483-0.714c-0.055,0.494,0.549,0.95,0.549,0.95
s17.14,1.193,17.14-1.774s-2.417-2.582-1.483-2.967c0.934-0.385,2.362-2.527,2.362-2.527s-0.165,5.109-0.275,5.439
c-0.783,2.348,7.417,2.307,7.417,0.604c0-1.703-2.033-2.198-2.033-2.198s0.549-20.107-0.22-20.986
c-0.769-0.879-0.33-1.868-0.33-1.868c7.801-5.384,4.285-11.757,4.285-13.405C52.203,15.097,52.972,4,51.104,4
s-5.384,4.944-6.373,6.812c-0.122-0.104-0.263-0.192-0.419-0.265c-1.82-0.853-5.734,0.265-5.734,0.265
c-1.318-1.099-9.669-6.043-11.097-4.615c-2.088,1.978,4.505,12.855,4.505,12.855C30.997,28.282,36.82,30.15,36.82,30.15
s-0.33,3.296-5.933,6.592c-7.142,3.406-8.57,7.911-8.68,9.669c-0.11,1.758,1.209,6.592-4.615,4.725
c-5.823-1.868-4.065-6.592-4.065-6.592C11.22,45.367,11,47.84,11,47.84z"/>
</svg>
</span>
<span class="content">HI,kitty</span>
</div>
<div id="talk2" class="active talk">
<span class="content">hello,doge</span>
<span class="item">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 500" enable-background="new 0 0 400 500" xml:space="preserve">
<g id="cauda" width="72" height="79">
<path id="cauda_in" fill="#333333" d="M164.7,376.7l6.2,9.9c0,0-15.1,13-33.7,16.8c-13.4,2.8-61.1,6.4-61.1-41.8
s33.6-56.2,18.4-15.5c0,0-5.5,17.1,1.6,28.6s27.4,21.7,45.8,12.2L164.7,376.7z" width="72" height="79" />
</g>
<g>
<g>
<path fill="#4D4D4D" d="M242.2,95L242.2,95l-0.1-0.1C242.1,94.9,242.1,95,242.2,95z" />
<path fill="#4D4D4D" d="M111.9,78.4L111.9,78.4C128.4,67.2,140,37.8,140,37.8l10.4,9.1c0,0-3-34.6,5.2-26.4s30.7,26,30.7,26
s-4.1-21.9,0-17.8c4,4,20.8,38.6,53.5,64.5c-18.5-14.5-42.9-28.1-74-41.4C144.8,60.8,127,69.5,111.9,78.4z" />
<g>
<path fill="#4D4D4D" d="M242,94.9c-0.8-0.6-1.5-1.2-2.2-1.7C240.5,93.7,241.3,94.3,242,94.9z" />
<path fill="#4D4D4D" d="M243.1,95.8c0.5-0.6,0.4-1.5-0.2-2l0,0c-0.7-0.6-1.5-1.2-2.2-1.8l0,0c0,0,0,0-0.1,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c-0.4-0.2-0.8-0.2-1.1-0.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0c0,0,0,0-0.1,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0,0,0,0,0,0.1l0,0
c-0.2,0.3-0.3,0.6-0.3,1l0,0l0,0l0,0c0,0.4,0.2,0.7,0.5,0.9l0,0c0.1,0.1,0.2,0.2,0.3,0.3l0,0c0.6,0.5,1.3,1,1.9,1.5l0,0l0.9-1.1
l-0.9,1.1c0.3,0.2,0.6,0.3,0.9,0.3l0,0C242.5,96.3,242.9,96.1,243.1,95.8L243.1,95.8z" />
</g>
</g>
</g>
<g>
<g>
<path fill="#333333" d="M158.8,95.7L158.8,95.7l0.1-0.1C158.8,95.7,158.8,95.7,158.8,95.7z" />
<path fill="#333333" d="M289,79.2L289,79.2c-16.4-11.3-28.1-40.7-28.1-40.7l-10.4,9.1c0,0,3-34.6-5.2-26.4s-30.7,26-30.7,26
s4.1-21.9,0-17.8c-4,4-20.8,38.6-53.5,64.5c18.5-14.5,42.9-28.1,74-41.4C256.1,61.5,274,70.2,289,79.2z" />
<g>
<path fill="#333333" d="M158.9,95.6c0.8-0.6,1.5-1.2,2.2-1.7C160.4,94.5,159.6,95.1,158.9,95.6z" />
<path fill="#333333" d="M157.8,96.5c-0.5-0.6-0.4-1.5,0.2-2l0,0c0.7-0.6,1.5-1.2,2.2-1.8l0,0c0,0,0,0,0.1,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0.4-0.2,0.8-0.2,1.1-0.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0c0,0,0,0,0.1,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0,0,0,0,0,0.1l0,0
c0.2,0.3,0.3,0.6,0.3,1l0,0l0,0l0,0c0,0.4-0.2,0.7-0.5,0.9l0,0c-0.1,0.1-0.2,0.2-0.3,0.3l0,0c-0.6,0.5-1.3,1-1.9,1.5l0,0
l-0.9-1.1l0.9,1.1c-0.3,0.2-0.6,0.3-0.9,0.3l0,0C158.5,97,158.1,96.9,157.8,96.5L157.8,96.5z" />
</g>
</g>
</g>
<path fill="#232323" d="M241.2,276.8c0,0,54.5,100.7,3.9,105.1" />
<path fill="#333333" d="M158.7,276.8c0,0-54.5,100.7-3.9,105.1" />
<path fill="#333333" d="M199.4,276.8H241c0,0,43.8,128.4-12,127.7h-29.6" />
<path fill="#4D4D4D" d="M200.1,276.8h-41.3c0,0-43.8,128.4,12,127.7h29.4" />
<path fill="#333333" d="M265.1,65.2c0,0,43-15.3,48.9-13.1c5.8,2.2,13.9,25.5,0,48.2" />
<path fill="#232323" d="M287.7,69.5c0,0,36.5-17.5,25.5,17.5" />
<path fill="#333333" d="M199.3,278.6c5.2-0.7,161.4,11.2,151.9-109S199.3,47,199.3,47" />
<path fill="#4D4D4D" d="M134.8,64.4c0,0-43-15.3-48.9-13.1c-5.8,2.2-13.9,25.5,0,48.2" />
<path fill="#333333" d="M114.4,68.8c0,0-36.5-17.5-25.5,17.5" />
<path fill="#4D4D4D" d="M199.9,278.6c-5.2-0.7-161.4,11.2-151.9-109S199.9,47,199.9,47" />
<g>
<g>
<g>
<defs>
<path id="SVGID_1_" d="M245.2,228.4c0.4,15.3-18.4,22.6-46.5,22.6s-42.3-7.9-43.6-23.1c-1.8-21,15.3-18.7,43.4-18.7
C226.5,209.2,244.6,207.4,245.2,228.4z" />
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" overflow="visible" />
</clipPath>
<path clip-path="url(#SVGID_2_)" fill="#1E1E1E" d="M245.2,228.4c0.4,15.3-18.4,22.6-46.5,22.6s-42.3-7.9-43.6-23.1
c-1.8-21,15.3-18.7,43.4-18.7C226.5,209.2,244.6,207.4,245.2,228.4z" />
</g>
</g>
<g>
<g>
<defs>
<path id="SVGID_3_" d="M245.2,228.4c0.4,15.3-18.4,22.6-46.5,22.6s-42.3-7.9-43.6-23.1c-1.8-21,15.3-18.7,43.4-18.7
C226.5,209.2,244.6,207.4,245.2,228.4z" />
</defs>
<clipPath id="SVGID_4_">
<use xlink:href="#SVGID_3_" overflow="visible" />
</clipPath>
<path clip-path="url(#SVGID_4_)" fill="#F05B61" d="M159.4,250.1c-0.3-13.3,16-19.6,40.3-19.6s36.6,6.8,37.8,20
c1.6,18.2-13.2,16.2-37.6,16.2C175.6,266.7,159.9,268.3,159.4,250.1z" />
</g>
</g>
</g>
<path fill="#333333" d="M209.4,398c-2.5,6.3-4.6,12.7-4.9,19.5c-0.5,9.5,2,18.9,5.2,27.7c1.7,4.6,12.8,1.7,11.2-2.8
c-2.9-8.1-5.3-16.6-5.1-25.2c0.2-6.3,2-12.3,4.4-18.1c2.2-5.5-8.1-5.3-9.8-1.1H209.4z" />
<path fill="#4D4D4D" d="M194.2,396.7c-2.9,15.4-8.3,33-0.3,47.8c1.3,2.4-3.7,2.9-4.9,3.1c-2.8,0.3-6.2-0.9-7.7-3.5
c-8.5-15.7,0.2-35.5,3.4-52C185.1,389.9,194.8,393.4,194.2,396.7z" />
<path fill="#1E1E1E" d="M212.1,167.6c-2.7-5.2-22.5-5.5-24.6,0c-1.3,3.6,7.6,11,12.1,10.8C204.2,178.1,213.7,170.7,212.1,167.6z" />
<path fill="#1E1E1E" d="M230.5,136.4c3.4-6,6.5-9.9,9.2-12.1l0,0c2.7-2.3,4.9-2.9,6.8-2.9l0,0c3,0,5.9,2,8.3,4.7l0,0
c2.4,2.7,4.1,5.8,4.6,7l0,0c0.2,0.3,0.2,0.5,0.2,0.5l0,0l0,0c0.6,1.4,2.3,2.1,3.8,1.5l0,0c1.4-0.6,2.1-2.3,1.5-3.8l0,0
c-0.1-0.2-3.5-8.3-10.3-13l0,0c-2.3-1.5-5-2.7-8.2-2.7l0,0c-3.4,0-7,1.4-10.4,4.2l0,0c-3.5,2.9-7,7.3-10.5,13.8l0,0
c-0.8,1.4-0.3,3.1,1.1,3.9l0,0c0.4,0.2,0.9,0.4,1.4,0.4l0,0C229,137.9,230,137.3,230.5,136.4L230.5,136.4z" />
<path fill="#1E1E1E" d="M140.3,136.4c3.4-6,6.5-9.9,9.2-12.1l0,0c2.7-2.3,4.9-2.9,6.8-2.9l0,0c3,0,5.9,2,8.3,4.7l0,0
c2.4,2.7,4.1,5.8,4.6,7l0,0c0.2,0.3,0.2,0.5,0.2,0.5l0,0l0,0c0.6,1.4,2.3,2.1,3.8,1.5l0,0c1.4-0.6,2.1-2.3,1.5-3.8l0,0
c-0.1-0.2-3.5-8.3-10.3-13l0,0c-2.3-1.5-5-2.7-8.2-2.7l0,0c-3.4,0-7,1.4-10.4,4.2l0,0c-3.5,2.9-7,7.3-10.5,13.8l0,0
c-0.8,1.4-0.3,3.1,1.1,3.9l0,0c0.4,0.2,0.9,0.4,1.4,0.4l0,0C138.7,137.9,139.7,137.3,140.3,136.4L140.3,136.4z" />
<path fill="#333333" d="M176.8,290.6c0,0,9.5,4.4,23.3,5.1v94.9C200.1,390.6,143.9,397.1,176.8,290.6z" />
<path fill="#232323" d="M223.5,290.6c0,0-9.5,4.4-23.3,5.1v94.9C200.1,390.6,256.3,397.1,223.5,290.6z" />
<g>
<g>
<path fill="#4D4D4D" d="M94.8,97.2L94.8,97.2L94.8,97.2C94.7,97.3,94.7,97.2,94.8,97.2z" />
<path fill="#4D4D4D" d="M78.2,227.4L78.2,227.4C67,211,37.5,199.3,37.5,199.3l9.1-10.4c0,0-33.9-45.1-25.7-53.3
c8.2-8.2,25.2,17.4,25.2,17.4s-21.1-44-17-48.2c4-4,37.9,27.3,63.8-5.3c-14.5,18.5-28.1,42.9-41.4,74
C60.5,194.5,69.3,212.4,78.2,227.4z" />
<g>
<path fill="#4D4D4D" d="M94.7,97.3c-0.6,0.8-1.2,1.5-1.7,2.2C93.5,98.8,94.1,98,94.7,97.3z" />
<path fill="#4D4D4D" d="M95.5,96.2c-0.6-0.5-1.5-0.4-2,0.2l0,0c-0.6,0.7-1.2,1.5-1.8,2.2l0,0c0,0,0,0,0,0.1l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c-0.2,0.4-0.2,0.8-0.1,1.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0c0,0,0,0,0,0.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0,0,0,0,0.1,0l0,0
c0.3,0.2,0.6,0.3,1,0.3l0,0l0,0l0,0c0.4,0,0.7-0.2,0.9-0.5l0,0c0.1-0.1,0.2-0.2,0.3-0.3l0,0c0.5-0.6,1-1.3,1.5-1.9l0,0l-1.1-0.9
l1.1,0.9c0.2-0.3,0.3-0.6,0.3-0.9l0,0C96.1,96.9,95.9,96.5,95.5,96.2L95.5,96.2z" />
</g>
</g>
</g>
<g>
<g>
<path fill="#333333" d="M302.8,99.1L302.8,99.1l0.1,0.1C302.8,99.1,302.8,99.1,302.8,99.1z" />
<path fill="#333333" d="M319.3,229.3L319.3,229.3c11.3-16.4,40.7-28.1,40.7-28.1l-9.1-10.4c0,0,34.6,3,26.4-5.2s-26-30.7-26-30.7
s21.9,4.1,17.8,0c-4-4-38.6-20.8-64.5-53.5c14.5,18.5,28.1,42.9,41.4,74C337,196.4,328.3,214.3,319.3,229.3z" />
<g>
<path fill="#333333" d="M302.9,99.2c0.6,0.8,1.2,1.5,1.7,2.2C304,100.7,303.5,99.9,302.9,99.2z" />
<path fill="#333333" d="M302,98.1c0.6-0.5,1.5-0.4,2,0.2l0,0c0.6,0.7,1.2,1.5,1.8,2.2l0,0c0,0,0,0,0,0.1l0,0l0,0l0,0l0,0l0,0l0,0
l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0.2,0.4,0.2,0.8,0.1,1.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0
l0,0c0,0,0,0,0,0.1l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0l0,0c0,0,0,0-0.1,0l0,0
c-0.3,0.2-0.6,0.3-1,0.3l0,0l0,0l0,0c-0.4,0-0.7-0.2-0.9-0.5l0,0c-0.1-0.1-0.2-0.2-0.3-0.3l0,0c-0.5-0.6-1-1.3-1.5-1.9l0,0
l1.1-0.9l-1.1,0.9c-0.2-0.3-0.3-0.6-0.3-0.9l0,0C301.5,98.8,301.6,98.4,302,98.1L302,98.1z" />
</g>
</g>
</g>
</svg>
</span>
</div>
</main>
<script>
// var $ = function(o){ return document.getElementById(o)};
// var SpriteEngine = {//动画引擎,由动画引擎调度所有的动画对象
// sprites : {},//动画对象字典
// frame : 20,//每秒30帧
// timer : null ,//动画计时器
// register: function(spriteObj){//注册动画对象
// if(spriteObj.id && ! this.sprites[spriteObj.id]){
// this.sprites[spriteObj.id] = spriteObj;
// }
// },
// unRegister:function(spriteObj){//删除动画对象
// if(spriteObj.id){
// delete this.sprites[spriteObj.id];
// }
// },
// startFrame : function(){//开始动画
// this.timer = setInterval(this.enterFrameFunction, 1000 / this.frame);
// },
// stopFrame : function(){//暂停动画
// if(this.timer)
// clearInterval(this.timer);
// },
// enterFrameFunction : function(){//内部启动方法
// var sprites = SpriteEngine.sprites;
// for(var key in sprites){
// var sprite = sprites[key];
// //$("debug").innerHTML += sprite.id;
// if(sprite.id && sprite.enterFrame){//检查是否是Sprite的接口实例
// sprite.enterFrame(1000 / SpriteEngine.frame);
// }
// }
// }
// };
// /**
// * 动画对象
// * 设定内部接口为
// * id 动画对象的标识
// * enterFrame 由动画引擎调用
// * 外部接口为
// * addEnterFrameFunction 设定动画对象的运动函数
// */
// var Sprite = function(id,speed,direction){
// this.id = id;//接口,必须有ID,内部接口
// this.x = 0;
// this.y = 0;
// this.dom = $(id);
// this.speed = speed;//运动的速度,每毫秒多少像素
// this.direction = direction;//运动的角度,单位弧度
// this.enterFrameFun = [];//动画方程列表
// SpriteEngine.register(this);
// if(this.dom){//初始化位置
// this.dom.style.top = 0;
// // this.dom.style.left = 0;
// }
// };
// Sprite.prototype.setXY = function(x, y){//设置内部dom位置,这个仅仅是演示用的,不算Sprite的接口
// this.x = x;
// this.y = y;
// if(this.dom){
// this.dom.style.top = y + 'px';
// this.dom.style.left = x + 'px';
// }
// }
// Sprite.prototype.setXY2R = function(x, y){//设置内部dom位置,这个仅仅是演示用的,不算Sprite的接口
// this.x = x;
// this.y = y;
// if(this.dom){
// this.dom.style.top = y + 'px';
// this.dom.style.right = x + 'px';
// }
// }
// Sprite.prototype.addEnterFrameFunction = function(fun){//添加动画的方法接口,外部接口
// this.enterFrameFun.push(fun);
// };
// Sprite.prototype.enterFrame = function(stepTime){//引擎调用的接口,内部接口
// for(var i = this.enterFrameFun.length; i--; ){
// this.enterFrameFun[i].call(this,stepTime);
// }
// };
// var movefun1 = function(stepTime){//demo 直线运动
// var move = this.speed * stepTime
// var _x = move * Math.cos(this.direction);
// var _y = move * Math.sin(this.direction);
// this.setXY(this.x + _x, this.y + _y);
// }
// var movefun2 = function(stepTime){//demo 给定一个角速度
// var move = this.speed * stepTime
// var _x = move * Math.cos(this.direction);
// var _y = move * Math.sin(this.direction);
// this.setXY(this.x - _x, this.y - _y);
// }
// var fun1=function(stepTime)
// {
// if(this.x>0)
// {
// var move = this.speed * stepTime
// var _x = move * Math.cos(this.direction);
// var _y = move * Math.sin(this.direction);
// this.setXY(this.x + _x, this.y + _y);
// }
// }
// // var movefun3 = function(stepTime){//demo 往复运动
// // if (this.x > 500){
// // this.direction = Math.PI;
// // if(this.active)
// // {
// // this.active=false;
// // this.dom.classList.remove('active');
// // }else{
// // this.active=true;
// // this.dom.classList.add('active');
// // }
// // }
// // if(this.x < 50){
// // this.direction = 0;
// // }
// // }
// function init(){
// var a = new Sprite("p1", 0.05, 50);
// var b = new Sprite("p2", 0.05, 50);
// a.active=true;
// b.active=true;
// a.setXY(0,0);//直线运动,叠加往复运动
// b.setXY2R(0,0);//直线运动,叠加角速度
// a.addEnterFrameFunction(movefun1);
// a.addEnterFrameFunction(movefun3);
// b.addEnterFrameFunction(movefun2);
// b.addEnterFrameFunction(movefun3);
// }
// window.onload=function()
// {
// init();
// SpriteEngine.startFrame();
// };
</script>
</body>
</html>