Ubuntu正在使用SVG制作广告。下面的示例是常规广告之一,我们可以在广告部分的不同网站中看到。
HTML
x
904
904
1
2
<html lang="en">
3
<head>
4
<meta charset="utf-8">
5
<title>SVG应用:SVG制作广告 | web176教程网</title>
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<meta name="viewport" content="width=device-width, initial-scale=1">
8
<link href='https://fonts.googleapis.com/css?family=Roboto:400,700,700italic,400italic&subset=latin,cyrillic,latin-ext,vietnamese,greek,greek-ext,cyrillic-ext' rel='stylesheet' type='text/css'>
9
<style type="text/css">
10
@-webkit-keyframes ubuntu-scene-fade-in{
11
0%{
12
opacity: 0;
13
}
14
100%{
15
opacity: 1;
16
}
17
}
18
19
@-webkit-keyframes ubuntu-scene-fade-out{
20
0%{
21
opacity: 1;
22
}
23
100%{
24
opacity: 0;
25
}
26
}
27
28
@-webkit-keyframes ubuntu-scene-hidden{
29
0%{
30
opacity: 0;
31
}
32
100%{
33
opacity: 0;
34
}
35
}
36
37
@-webkit-keyframes ubuntu-scene-visible{
38
0%{
39
opacity: 1;
40
}
41
100%{
42
opacity: 1;
43
}
44
}
45
46
@keyframes ubuntu-scene-fade-in{
47
0%{
48
opacity: 0;
49
}
50
100%{
51
opacity: 1;
52
}
53
}
54
55
@keyframes ubuntu-scene-fade-out{
56
0%{
57
opacity: 1;
58
}
59
100%{
60
opacity: 0;
61
}
62
}
63
64
@keyframes ubuntu-scene-hidden{
65
0%{
66
opacity: 0;
67
}
68
100%{
69
opacity: 0;
70
}
71
}
72
73
@keyframes ubuntu-scene-visible{
74
0%{
75
opacity: 1;
76
}
77
100%{
78
opacity: 1;
79
}
80
}
81
82
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
83
84
/**
85
* 1. Set default font family to sans-serif.
86
* 2. Prevent iOS text size adjust after orientation change, without disabling
87
* user zoom.
88
*/
89
90
html {
91
font-family: 'Roboto', sans-serif; /* 1 */
92
text-size-adjust: 100%; /* 2 */
93
text-size-adjust: 100%; /* 2 */
94
}
95
96
/**
97
* Remove default margin.
98
*/
99
100
body {
101
margin: 0;
102
}
103
104
/* HTML5 display definitions
105
========================================================================== */
106
107
/**
108
* Correct `block` display not defined for any HTML5 element in IE 8/9.
109
* Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
110
* Correct `block` display not defined for `main` in IE 11.
111
*/
112
113
article,
114
aside,
115
details,
116
figcaption,
117
figure,
118
footer,
119
header,
120
hgroup,
121
main,
122
nav,
123
section,
124
summary {
125
display: block;
126
}
127
128
/**
129
* 1. Correct `inline-block` display not defined in IE 8/9.
130
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
131
*/
132
133
audio,
134
canvas,
135
progress,
136
video {
137
display: inline-block; /* 1 */
138
vertical-align: baseline; /* 2 */
139
}
140
141
/**
142
* Prevent modern browsers from displaying `audio` without controls.
143
* Remove excess height in iOS 5 devices.
144
*/
145
146
audio:not([controls]) {
147
display: none;
148
height: 0;
149
}
150
151
/**
152
* Address `[hidden]` styling not present in IE 8/9/10.
153
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
154
*/
155
156
[hidden],
157
template {
158
display: none;
159
}
160
161
/* Links
162
========================================================================== */
163
164
/**
165
* Remove the gray background color from active links in IE 10.
166
*/
167
168
a {
169
background: transparent;
170
}
171
172
/**
173
* Improve readability when focused and also mouse hovered in all browsers.
174
*/
175
176
a:active,
177
a:hover {
178
outline: 0;
179
}
180
181
/* Text-level semantics
182
========================================================================== */
183
184
/**
185
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
186
*/
187
188
abbr[title] {
189
border-bottom: 1px dotted;
190
}
191
192
/**
193
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
194
*/
195
196
b,
197
strong {
198
font-weight: bold;
199
}
200
201
/**
202
* Address styling not present in Safari and Chrome.
203
*/
204
205
dfn {
206
font-style: italic;
207
}
208
209
/**
210
* Address variable `h1` font-size and margin within `section` and `article`
211
* contexts in Firefox 4+, Safari, and Chrome.
212
*/
213
214
h1 {
215
font-size: 2em;
216
margin: 0.67em 0;
217
}
218
219
/**
220
* Address styling not present in IE 8/9.
221
*/
222
223
mark {
224
background: #ff0;
225
color: #000;
226
}
227
228
/**
229
* Address inconsistent and variable font size in all browsers.
230
*/
231
232
small {
233
font-size: 80%;
234
}
235
236
/**
237
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
238
*/
239
240
sub,
241
sup {
242
font-size: 75%;
243
line-height: 0;
244
position: relative;
245
vertical-align: baseline;
246
}
247
248
sup {
249
top: -0.5em;
250
}
251
252
sub {
253
bottom: -0.25em;
254
}
255
256
/* Embedded content
257
========================================================================== */
258
259
/**
260
* Remove border when inside `a` element in IE 8/9/10.
261
*/
262
263
img {
264
border: 0;
265
}
266
267
/**
268
* Correct overflow not hidden in IE 9/10/11.
269
*/
270
271
svg:not(:root) {
272
overflow: hidden;
273
}
274
275
/* Grouping content
276
========================================================================== */
277
278
/**
279
* Address margin not present in IE 8/9 and Safari.
280
*/
281
282
figure {
283
margin: 1em 40px;
284
}
285
286
/**
287
* Address differences between Firefox and other browsers.
288
*/
289
290
hr {
291
box-sizing: content-box;
292
box-sizing: content-box;
293
height: 0;
294
}
295
296
/**
297
* Contain overflow in all browsers.
298
*/
299
300
pre {
301
overflow: auto;
302
}
303
304
/**
305
* Address odd `em`-unit font size rendering in all browsers.
306
*/
307
308
code,
309
kbd,
310
pre,
311
samp {
312
font-family: monospace, monospace;
313
font-size: 1em;
314
}
315
316
/* Forms
317
========================================================================== */
318
319
/**
320
* Known limitation: by default, Chrome and Safari on OS X allow very limited
321
* styling of `select`, unless a `border` property is set.
322
*/
323
324
/**
325
* 1. Correct color not being inherited.
326
* Known issue: affects color of disabled elements.
327
* 2. Correct font properties not being inherited.
328
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
329
*/
330
331
button,
332
input,
333
optgroup,
334
select,
335
textarea {
336
color: inherit; /* 1 */
337
font: inherit; /* 2 */
338
margin: 0; /* 3 */
339
}
340
341
/**
342
* Address `overflow` set to `hidden` in IE 8/9/10/11.
343
*/
344
345
button {
346
overflow: visible;
347
}
348
349
/**
350
* Address inconsistent `text-transform` inheritance for `button` and `select`.
351
* All other form control elements do not inherit `text-transform` values.
352
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
353
* Correct `select` style inheritance in Firefox.
354
*/
355
356
button,
357
select {
358
text-transform: none;
359
}
360
361
/**
362
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
363
* and `video` controls.
364
* 2. Correct inability to style clickable `input` types in iOS.
365
* 3. Improve usability and consistency of cursor style between image-type
366
* `input` and others.
367
*/
368
369
button,
370
html input[type="button"], /* 1 */
371
input[type="reset"],
372
input[type="submit"] {
373
appearance: button; /* 2 */
374
cursor: pointer; /* 3 */
375
}
376
377
/**
378
* Re-set default cursor for disabled elements.
379
*/
380
381
button[disabled],
382
html input[disabled] {
383
cursor: default;
384
}
385
386
/**
387
* Remove inner padding and border in Firefox 4+.
388
*/
389
390
button::focus-inner,
391
input::focus-inner {
392
border: 0;
393
padding: 0;
394
}
395
396
/**
397
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
398
* the UA stylesheet.
399
*/
400
401
input {
402
line-height: normal;
403
}
404
405
/**
406
* It's recommended that you don't attempt to style these elements.
407
* Firefox's implementation doesn't respect box-sizing, padding, or width.
408
*
409
* 1. Address box sizing set to `content-box` in IE 8/9/10.
410
* 2. Remove excess padding in IE 8/9/10.
411
*/
412
413
input[type="checkbox"],
414
input[type="radio"] {
415
box-sizing: border-box; /* 1 */
416
padding: 0; /* 2 */
417
}
418
419
/**
420
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
421
* `font-size` values of the `input`, it causes the cursor style of the
422
* decrement button to change from `default` to `text`.
423
*/
424
425
input[type="number"]::inner-spin-button,
426
input[type="number"]::outer-spin-button {
427
height: auto;
428
}
429
430
/**
431
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
432
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
433
* (include `-moz` to future-proof).
434
*/
435
436
input[type="search"] {
437
appearance: textfield; /* 1 */
438
box-sizing: content-box;
439
box-sizing: content-box; /* 2 */
440
box-sizing: content-box;
441
}
442
443
/**
444
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
445
* Safari (but not Chrome) clips the cancel button when the search input has
446
* padding (and `textfield` appearance).
447
*/
448
449
input[type="search"]::search-cancel-button,
450
input[type="search"]::search-decoration {
451
appearance: none;
452
}
453
454
/**
455
* Define consistent border, margin, and padding.
456
*/
457
458
fieldset {
459
border: 1px solid #c0c0c0;
460
margin: 0 2px;
461
padding: 0.35em 0.625em 0.75em;
462
}
463
464
/**
465
* 1. Correct `color` not being inherited in IE 8/9/10/11.
466
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
467
*/
468
469
legend {
470
border: 0; /* 1 */
471
padding: 0; /* 2 */
472
}
473
474
/**
475
* Remove default vertical scrollbar in IE 8/9/10/11.
476
*/
477
478
textarea {
479
overflow: auto;
480
}
481
482
/**
483
* Don't inherit the `font-weight` (applied by a rule above).
484
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
485
*/
486
487
optgroup {
488
font-weight: bold;
489
}
490
491
/* Tables
492
========================================================================== */
493
494
/**
495
* Remove most spacing between table cells.
496
*/
497
498
table {
499
border-collapse: collapse;
500
border-spacing: 0;
501
}
502
503
td,
504
th {
505
padding: 0;
506
}
507
508
body {
509
background: #eee;
510
color: #222;
511
}
512
513
a{
514
color: #222;
515
}
516
517
a:hover{
518
color: #C55129;
519
}
520
521
.container {
522
text-align: center;
523
}
524
525
.video{
526
border: 1px solid #ccc;
527
width: 570px;
528
height: 460px;
529
margin: 20px auto;
530
background: #857F96;
531
position: relative;
532
overflow: hidden;
533
}
534
535
.background-shading{
536
width: 100%;
537
height: 140%;
538
z-index: 1;
539
background: #a29bbd; /* Old browsers */
540
background: radial-gradient(center, ellipse cover, #a29bbd 0%, #a29bbd 10%, #948ea9 30%, #847c93 59%, #686373 80%, #494650 100%); /* FF3.6+ */
541
background: gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#a29bbd), color-stop(10%,#a29bbd), color-stop(30%,#948ea9), color-stop(59%,#847c93), color-stop(80%,#686373), color-stop(100%,#494650)); /* Chrome,Safari4+ */
542
background: radial-gradient(center, ellipse cover, #a29bbd 0%,#a29bbd 10%,#948ea9 30%,#847c93 59%,#686373 80%,#494650 100%); /* Chrome10+,Safari5.1+ */
543
background: radial-gradient(center, ellipse cover, #a29bbd 0%,#a29bbd 10%,#948ea9 30%,#847c93 59%,#686373 80%,#494650 100%); /* Opera 12+ */
544
background: radial-gradient(center, ellipse cover, #a29bbd 0%,#a29bbd 10%,#948ea9 30%,#847c93 59%,#686373 80%,#494650 100%); /* IE10+ */
545
background: radial-gradient(ellipse at center, #a29bbd 0%,#a29bbd 10%,#948ea9 30%,#847c93 59%,#686373 80%,#494650 100%); /* W3C */
546
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a29bbd', endColorstr='#494650',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
547
}
548
549
#ubuntu-symbol{
550
z-index: 2;
551
overflow: visible;
552
}
553
554
.composition,
555
.background-shading,
556
#ubuntu-symbol,
557
.question-1,
558
.question-2,
559
.ubuntu-url,
560
.credits,
561
.counter-container,
562
#ubuntu-logo{
563
position: absolute;
564
top: 50%;
565
left: 50%;
566
margin-right: -50%;
567
transform: translate(-50%, -50%);
568
transform: translate(-50%, -50%);
569
}
570
571
.composition{
572
width: 100%;
573
height: 100%;
574
z-index: 3;
575
background-color: #fff;
576
animation-name: ubuntu-scene-visible, ubuntu-scene-fade-out, ubuntu-scene-hidden, ubuntu-scene-fade-in;
577
animation-delay: 0, 3s, 3.5s, 13.25s;
578
animation-duration: 3s, 0.5s, 10.25s, 0s;
579
animation-timing-function: ease-in-out;
580
animation-iteration-count: 1;
581
animation-name: ubuntu-scene-visible, ubuntu-scene-fade-out, ubuntu-scene-hidden, ubuntu-scene-fade-in;
582
animation-delay: 0s, 3s, 3.5s, 13.25s;
583
animation-duration: 3s, 0.5s, 10.25s, 0s;
584
animation-timing-function: ease-in-out;
585
animation-iteration-count: 1;
586
}
587
588
.question-1,
589
.question-2,
590
.ubuntu-url,
591
.credits,
592
.counter-container,
593
#ubuntu-logo{
594
opacity: 0;
595
}
596
597
.question-1,
598
.question-2,
599
.ubuntu-url,
600
.credits,
601
.counter-container{
602
font-size: 36pt;
603
color: #C55129;
604
font-weight: normal;
605
padding: 0;
606
margin: 0;
607
}
608
609
.question-1{
610
animation-delay: 0s, 1s, 2.8s;
611
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
612
animation-timing-function: ease-in-out;
613
animation-duration: 1s, 1.8s, 0.25s;
614
animation-iteration-count: 1;
615
animation-delay: 0s, 1s, 2.8s;
616
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
617
animation-timing-function: ease-in-out;
618
animation-duration: 1s, 1.8s, 0.25s;
619
animation-iteration-count: 1;
620
}
621
.question-2{
622
animation-delay: 13.5s;
623
animation-name: ubuntu-scene-visible;
624
animation-duration: 1.75s;
625
animation-iteration-count: 1;
626
animation-delay: 13.5s;
627
animation-name: ubuntu-scene-visible;
628
animation-duration: 1.75s;
629
animation-iteration-count: 1;
630
}
631
632
#ubuntu-logo{
633
transform: translate(-35%, -50%);
634
transform: translate(-35%, -50%);
635
animation-delay: 15.5s, 15.5s, 20.25s;
636
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
637
animation-timing-function: ease-in-out;
638
animation-duration: 0s, 4.75s, 0.25s;
639
animation-iteration-count: 1;
640
animation-delay: 15.5s, 15.5s, 20.25s;
641
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
642
animation-timing-function: ease-in-out;
643
animation-duration: 0s, 4.75s, 0.25s;
644
animation-iteration-count: 1;
645
}
646
647
.ubuntu-url{
648
transform: translate(-55%, 70%);
649
transform: translate(-55%, 70%);
650
font-size: 27.25pt;
651
animation-delay: 17s, 17.25s, 20.25s;
652
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
653
animation-timing-function: ease-in-out;
654
animation-duration: 0.25s, 3s, 0.25s;
655
animation-iteration-count: 1;
656
animation-delay: 17s, 17.25s, 20.25s;
657
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
658
animation-timing-function: ease-in-out;
659
animation-duration: 0.25s, 3s, 0.25s;
660
animation-iteration-count: 1;
661
}
662
663
.credits span{
664
font-size: 37.5pt;
665
}
666
.credits{
667
animation-delay: 20.5s, 21s, 27.5s;
668
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
669
animation-duration: 0.5s, 6.5s, 1s;
670
animation-iteration-count: 1;
671
animation-delay: 20.5s, 21s, 27.5s;
672
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
673
animation-duration: 0.5s, 6.5s, 1s;
674
animation-iteration-count: 1;
675
}
676
677
.counter-container{
678
animation-delay: 3.7s, 3.05s, 15.05s;
679
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
680
animation-timing-function: ease-in-out;
681
animation-duration: 0.05s, 12s, 0s;
682
animation-iteration-count: 1;
683
animation-delay: 3.7s, 3.05s, 15.05s;
684
animation-name: ubuntu-scene-fade-in, ubuntu-scene-visible, ubuntu-scene-fade-out;
685
animation-timing-function: ease-in-out;
686
animation-duration: 0.05s, 12s, 0s;
687
animation-iteration-count: 1;
688
top: 85%;
689
font-size: 18pt;
690
z-index: 2;
691
color: #fff;
692
}
693
</style>
694
</head>
695
<body>
696
<div class="container">
697
<div class="video">
698
699
<div class="background-shading"></div>
700
<div class="composition">
701
<h2 class="question-1">How fast does your PC boot?</h2>
702
<h2 class="question-2">Ready to work?</h2>
703
<h2 class="credits"><span>Created by Ubuntu</span> <br></h2>
704
<svg id="ubuntu-logo" version="1.1" xmlns="http://www.w3.org/2000/svg" width="758px" height="171px" viewBox="-0.424 -0.244 758 171" preserveAspectRatio = "xMidYMid meet">
705
<g transform="translate(50,0) scale(0.6)">
706
<circle fill="#DD4814" cx="712.027" cy="45.326" r="45.326"/>
707
<path fill="#FFFFFF" d="M681.207,39.273c-3.344,0-6.053,2.709-6.053,6.053c0,3.342,2.709,6.051,6.053,6.051
708
c3.342,0,6.051-2.709,6.051-6.051C687.257,41.982,684.548,39.273,681.207,39.273z M724.414,66.777
709
c-2.895,1.672-3.887,5.371-2.215,8.264c1.67,2.895,5.369,3.887,8.264,2.215c2.895-1.67,3.887-5.369,2.215-8.264
710
C731.007,66.1,727.306,65.107,724.414,66.777z M694.351,45.326c0-5.98,2.971-11.264,7.516-14.463l-4.424-7.41
711
c-5.295,3.539-9.234,8.947-10.871,15.281c1.91,1.559,3.133,3.932,3.133,6.592c0,2.658-1.223,5.031-3.133,6.59
712
c1.635,6.336,5.574,11.744,10.871,15.283l4.424-7.412C697.322,56.59,694.351,51.307,694.351,45.326z M712.027,27.648
713
c9.234,0,16.811,7.08,17.605,16.109l8.623-0.127c-0.424-6.666-3.336-12.65-7.811-17.051c-2.301,0.869-4.959,0.736-7.256-0.588
714
c-2.301-1.328-3.744-3.568-4.139-6c-2.236-0.617-4.59-0.955-7.023-0.955c-4.184,0-8.139,0.982-11.65,2.721l4.205,7.535
715
C706.843,28.24,709.367,27.648,712.027,27.648z M712.027,63.002c-2.66,0-5.184-0.592-7.445-1.645l-4.205,7.535
716
c3.512,1.74,7.467,2.723,11.65,2.723c2.434,0,4.787-0.338,7.023-0.957c0.395-2.432,1.838-4.67,4.139-6
717
c2.299-1.326,4.955-1.457,7.256-0.588c4.475-4.4,7.387-10.385,7.811-17.051l-8.625-0.127
718
C728.837,55.924,721.261,63.002,712.027,63.002z M724.412,23.871c2.895,1.672,6.594,0.682,8.264-2.213
719
c1.672-2.895,0.682-6.594-2.213-8.266c-2.895-1.67-6.594-0.678-8.266,2.217C720.527,18.502,721.519,22.201,724.412,23.871z"/>
720
<path d="M90.651,164.257c-4.606,1.153-10.684,2.375-18.238,3.669c-7.555,1.296-16.296,1.942-26.225,1.942
721
c-8.633,0-15.901-1.261-21.799-3.775c-5.902-2.516-10.65-6.079-14.245-10.685c-3.599-4.604-6.188-10.037-7.77-16.296
722
C0.789,132.853,0,125.914,0,118.285V55.262h20.073v58.706c0,13.672,2.158,23.456,6.476,29.354
723
c4.316,5.902,11.581,8.851,21.799,8.851c2.158,0,4.387-0.072,6.691-0.218c2.3-0.141,4.458-0.323,6.475-0.539
724
c2.013-0.216,3.848-0.431,5.504-0.646c1.652-0.216,2.839-0.465,3.561-0.755V55.262h20.073V164.257z"/>
725
<path d="M139.644,60.225c2.445-1.581,6.151-3.237,11.115-4.963c4.964-1.728,10.684-2.59,17.159-2.59
726
c8.057,0,15.216,1.438,21.476,4.315c6.259,2.88,11.547,6.907,15.863,12.088c4.317,5.18,7.588,11.368,9.821,18.562
727
c2.229,7.196,3.346,15.107,3.346,23.74c0,9.066-1.333,17.235-3.993,24.5c-2.664,7.266-6.441,13.417-11.332,18.452
728
c-4.894,5.039-10.792,8.923-17.698,11.656c-6.907,2.731-14.677,4.1-23.311,4.1c-9.355,0-17.627-0.646-24.821-1.942
729
c-7.196-1.295-13.095-2.589-17.698-3.885V3.459l20.073-3.452V60.225z M139.644,150.013c2.013,0.576,4.856,1.115,8.526,1.617
730
c3.669,0.506,8.235,0.757,13.705,0.757c10.792,0,19.425-3.562,25.9-10.684c6.475-7.124,9.713-17.231,9.713-30.327
731
c0-5.751-0.577-11.148-1.727-16.187c-1.153-5.035-3.021-9.388-5.611-13.057c-2.59-3.67-5.936-6.547-10.037-8.635
732
c-4.101-2.084-9.032-3.129-14.785-3.129c-5.47,0-10.505,0.938-15.108,2.806c-4.607,1.872-8.131,3.815-10.576,5.827V150.013z"/>
733
<path d="M330.44,164.257c-4.607,1.153-10.684,2.375-18.238,3.669c-7.555,1.296-16.295,1.942-26.224,1.942
734
c-8.634,0-15.901-1.261-21.8-3.775c-5.902-2.516-10.65-6.079-14.245-10.685c-3.599-4.604-6.188-10.037-7.77-16.296
735
c-1.585-6.26-2.375-13.199-2.375-20.828V55.262h20.073v58.706c0,13.672,2.158,23.456,6.475,29.354
736
c4.316,5.902,11.581,8.851,21.799,8.851c2.158,0,4.388-0.072,6.691-0.218c2.3-0.141,4.458-0.323,6.475-0.539
737
c2.013-0.216,3.848-0.431,5.504-0.646c1.652-0.216,2.84-0.465,3.561-0.755V55.262h20.073V164.257z"/>
738
<path d="M359.359,58.499c4.604-1.151,10.717-2.375,18.347-3.671c7.625-1.294,16.402-1.941,26.33-1.941
739
c8.922,0,16.33,1.261,22.232,3.776c5.898,2.52,10.609,6.043,14.137,10.576c3.523,4.533,6.006,9.967,7.447,16.296
740
c1.436,6.333,2.158,13.312,2.158,20.937v63.023h-20.074v-58.708c0-6.905-0.469-12.803-1.402-17.697
741
c-0.938-4.89-2.48-8.849-4.641-11.87c-2.158-3.023-5.037-5.216-8.633-6.584c-3.6-1.367-8.061-2.051-13.381-2.051
742
c-2.16,0-4.393,0.074-6.691,0.216c-2.304,0.145-4.499,0.325-6.583,0.541c-2.089,0.215-3.96,0.469-5.611,0.755
743
c-1.656,0.29-2.844,0.506-3.562,0.646v94.751h-20.073V58.499z"/>
744
<path d="M496.413,55.262h42.52v16.835h-42.52v51.799c0,5.611,0.43,10.253,1.295,13.921c0.863,3.671,2.158,6.549,3.885,8.634
745
c1.727,2.088,3.885,3.562,6.475,4.425c2.59,0.863,5.611,1.296,9.064,1.296c6.186,0,11.08-0.682,14.678-2.051
746
c3.594-1.366,6.043-2.337,7.338-2.913l4.316,16.403c-2.016,1.008-5.578,2.304-10.684,3.884c-5.109,1.582-10.898,2.374-17.375,2.374
747
c-7.627,0-13.92-0.97-18.885-2.913s-8.957-4.856-11.979-8.741c-3.021-3.886-5.146-8.668-6.367-14.354
748
c-1.225-5.682-1.836-12.264-1.836-19.748V23.965l20.074-3.453V55.262z"/>
749
<path d="M648.143,164.257c-4.607,1.153-10.686,2.375-18.238,3.669c-7.555,1.296-16.295,1.942-26.225,1.942
750
c-8.633,0-15.9-1.261-21.799-3.775c-5.902-2.516-10.65-6.079-14.246-10.685c-3.598-4.604-6.188-10.037-7.77-16.296
751
c-1.586-6.26-2.375-13.199-2.375-20.828V55.262h20.074v58.706c0,13.672,2.158,23.456,6.475,29.354
752
c4.316,5.902,11.58,8.851,21.799,8.851c2.158,0,4.387-0.072,6.691-0.218c2.299-0.141,4.459-0.323,6.475-0.539
753
c2.014-0.216,3.848-0.431,5.504-0.646c1.652-0.216,2.84-0.465,3.561-0.755V55.262h20.074V164.257z"/>
754
</g>
755
</svg>
756
</div>
757
<h4 class="counter-container">00:<span id="counter">00</span></h4>
758
<svg id="ubuntu-symbol" version="1.1" xmlns="http://www.w3.org/2000/svg" width="350px" height="350px" viewBox="-0.866 -0.866 285 285" preserveAspectRatio = "xMidYMid meet">
759
<defs>
760
<filter id="dropshadow" x="-100%" y="-100%" width="280%" height="280%">
761
<!-- stdDeviation is how much to blur -->
762
<feGaussianBlur in="SourceGraphic" stdDeviation="20">
763
<!--Shadow animation-->
764
<animate
765
attributeType="XML"
766
attributeName="stdDeviation"
767
calcMode="spline"
768
additive="sum"
769
values ="0 ; 20; 0"
770
keyTimes="0 ; 0.5 ; 1"
771
keySplines="0.4 0 0.5 1 ; 0.5 0 0.35 1"
772
begin="3.25s"
773
dur="10s" />
774
</feGaussianBlur>
775
</filter>
776
<filter id="gaussianblur" x="-100%" y="-100%" width="280%" height="280%">
777
<!-- stdDeviation is how much to blur -->
778
<feGaussianBlur in="SourceGraphic" stdDeviation="0">
779
<!--Blur animation-->
780
<animate
781
attributeType="XML"
782
attributeName="stdDeviation"
783
additive="sum"
784
calcMode="spline"
785
values ="0 ; 30; 0"
786
keyTimes="0 ; 0.5 ; 1"
787
keySplines="0.4 0 0.5 1 ; 0.5 0 0.35 1"
788
begin="3.25s"
789
dur="10s" />
790
</feGaussianBlur>
791
</filter>
792
</defs>
793
<g id="ubuntu-symbol-group">
794
<!--Rotation animation-->
795
<animateTransform
796
attributeName="transform"
797
attributeType="XML"
798
calcMode="spline"
799
begin="3.25s"
800
type="rotate"
801
values ="0 142 142 ; 14400 142 142"
802
keyTimes="0 ; 1"
803
keySplines="0.4 0 0.4 1"
804
dur="10s" />
805
<!--Translation animation-->
806
<animateTransform
807
attributeName="transform"
808
attributeType="XML"
809
calcMode="spline"
810
additive="sum"
811
begin="3.25s"
812
type="translate"
813
values ="0 0 ; 50 50 ; 0 0"
814
keyTimes="0 ; 0.5 ; 1"
815
keySplines="0.4 0 0.5 1 ; 0.5 0 0.25 1"
816
dur="10s" />
817
<!--Scaling animation-->
818
<animateTransform
819
attributeName="transform"
820
attributeType="XML"
821
additive="sum"
822
calcMode="spline"
823
values ="1 ; 0.65; 1"
824
keyTimes="0 ; 0.5 ; 1"
825
keySplines="0.4 0 0.5 1 ; 0.5 0 0.25 1"
826
begin="3.25s"
827
type="scale"
828
dur="10s" />
829
<path id="ubuntu-symbol-circle-shadow" filter="url(#dropshadow)" fill="#0F1116" d="M283.465,141.734c0,78.273-63.457,141.73-141.734,141.73S0,220.008,0,141.734C0,63.455,63.453,0,141.73,0 S283.465,63.455,283.465,141.734z"/>
830
<path id="ubuntu-symbol-circle" filter="url(#gaussianblur)" fill="#DCC6E5" d="M283.465,141.734c0,78.273-63.457,141.73-141.734,141.73S0,220.008,0,141.734C0,63.455,63.453,0,141.73,0 S283.465,63.455,283.465,141.734z"/>
831
<path id="ubuntu-symbol-circle-elements-inside" transform="translate(3,3) scale(0.98)" filter="url(#gaussianblur)" fill="#E1BECF" d="M45.356,122.812c-10.453,0-18.923,8.47-18.923,18.923c0,10.449,8.47,18.92,18.923,18.92
832
c10.449,0,18.92-8.471,18.92-18.92C64.276,131.281,55.806,122.812,45.356,122.812z M180.463,208.814
833
c-9.051,5.225-12.149,16.793-6.926,25.84c5.226,9.051,16.793,12.151,25.844,6.926c9.048-5.224,12.148-16.792,6.923-25.842
834
C201.08,206.691,189.511,203.59,180.463,208.814z M86.458,141.732c0-18.701,9.293-35.219,23.504-45.221L96.128,73.338
835
c-16.56,11.064-28.878,27.978-33.995,47.788c5.977,4.872,9.796,12.291,9.796,20.608c0,8.315-3.819,15.734-9.797,20.605
836
c5.116,19.812,17.435,36.726,33.995,47.789l13.835-23.175C95.751,176.953,86.458,160.436,86.458,141.732z M141.733,86.457
837
c28.877,0,52.564,22.141,55.047,50.373l26.968-0.394c-1.327-20.844-10.432-39.562-24.425-53.319
838
c-7.194,2.718-15.505,2.306-22.688-1.842c-7.192-4.152-11.705-11.156-12.941-18.757c-6.992-1.935-14.351-2.99-21.96-2.99
839
c-13.086,0-25.449,3.072-36.431,8.512l13.146,23.56C125.526,88.307,133.412,86.457,141.733,86.457z M141.733,197.008
840
c-8.322,0-16.207-1.85-23.285-5.143L105.3,215.427c10.983,5.438,23.347,8.511,36.433,8.511c7.609,0,14.968-1.055,21.961-2.99
841
c1.236-7.601,5.75-14.605,12.943-18.76c7.183-4.146,15.494-4.558,22.688-1.839c13.992-13.758,23.097-32.476,24.422-53.32
842
l-26.968-0.394C194.298,174.871,170.61,197.008,141.733,197.008z M180.46,74.649c9.05,5.227,20.619,2.126,25.842-6.921
843
c5.226-9.051,2.128-20.619-6.923-25.845c-9.049-5.224-20.617-2.124-25.843,6.927C168.312,57.857,171.412,69.426,180.46,74.649z"/>
844
<path id="ubuntu-symbol-circle-elements" filter="url(#gaussianblur)" fill="#13161F" d="M45.356,122.812c-10.453,0-18.923,8.47-18.923,18.923c0,10.449,8.47,18.92,18.923,18.92
845
c10.449,0,18.92-8.471,18.92-18.92C64.276,131.281,55.806,122.812,45.356,122.812z M180.463,208.814
846
c-9.051,5.225-12.149,16.793-6.926,25.84c5.226,9.051,16.793,12.151,25.844,6.926c9.048-5.224,12.148-16.792,6.923-25.842
847
C201.08,206.691,189.511,203.59,180.463,208.814z M86.458,141.732c0-18.701,9.293-35.219,23.504-45.221L96.128,73.338
848
c-16.56,11.064-28.878,27.978-33.995,47.788c5.977,4.872,9.796,12.291,9.796,20.608c0,8.315-3.819,15.734-9.797,20.605
849
c5.116,19.812,17.435,36.726,33.995,47.789l13.835-23.175C95.751,176.953,86.458,160.436,86.458,141.732z M141.733,86.457
850
c28.877,0,52.564,22.141,55.047,50.373l26.968-0.394c-1.327-20.844-10.432-39.562-24.425-53.319
851
c-7.194,2.718-15.505,2.306-22.688-1.842c-7.192-4.152-11.705-11.156-12.941-18.757c-6.992-1.935-14.351-2.99-21.96-2.99
852
c-13.086,0-25.449,3.072-36.431,8.512l13.146,23.56C125.526,88.307,133.412,86.457,141.733,86.457z M141.733,197.008
853
c-8.322,0-16.207-1.85-23.285-5.143L105.3,215.427c10.983,5.438,23.347,8.511,36.433,8.511c7.609,0,14.968-1.055,21.961-2.99
854
c1.236-7.601,5.75-14.605,12.943-18.76c7.183-4.146,15.494-4.558,22.688-1.839c13.992-13.758,23.097-32.476,24.422-53.32
855
l-26.968-0.394C194.298,174.871,170.61,197.008,141.733,197.008z M180.46,74.649c9.05,5.227,20.619,2.126,25.842-6.921
856
c5.226-9.051,2.128-20.619-6.923-25.845c-9.049-5.224-20.617-2.124-25.843,6.927C168.312,57.857,171.412,69.426,180.46,74.649z"/>
857
</g>
858
</svg>
859
</div>
860
<p><button onclick="javascript:history.go(0)">Reload</button></p>
861
862
</div>
863
<!--Include jQuery-->
864
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
865
<script>
866
867
jQuery('.counter-container').ready(function() {
868
// Get counter text value
869
counterVal = jQuery('#counter').text();
870
871
// Start counting after 2900ms
872
setTimeout(countIt, 2900);
873
});
874
875
function countIt() {
876
// Increment counter every 1000ms
877
countItInterval = setInterval(incrementIt, 1000);
878
}
879
880
function incrementIt() {
881
882
// Increment counter
883
counterVal++;
884
885
// Check if counter larger than 10 and stop if true
886
if (counterVal >= 10) {
887
clearInterval(countItInterval);
888
}
889
890
// Add zero in front of single number values
891
if (counterVal < 10) {
892
counterVal = '0' + counterVal;
893
}
894
895
// Print counter value in console
896
console.log(counterVal);
897
898
// Refresh counter value
899
jQuery('#counter').text(counterVal);
900
}
901
902
</script>
903
</body>
904
</html>
阅读剩余 97%
作者:terry,如若转载,请注明出处:https://www.web176.com/svgtag/1455.html