-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (86 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background: #424651;
font-family: Arial, Helvetica, sans-serif;
}
.panel{
min-width: 300px;
min-height: 250px;
text-align: center;
margin: 0 auto;
padding-top: 150px;
}
.design-svg {
transform: scale(2);
}
.design-svg .text {
position: absolute;
fill: none;
stroke-width: 2;
stroke-linejoin: round;
stroke-dasharray: 70 330;
stroke-dashoffset: 0;
-webkit-animation: stroke 6s infinite linear;
-moz-animation: stroke 6s infinite linear;
animation: stroke 6s infinite linear;
font-size: 40px;
}
.design-svg .text:nth-child(5n + 1) {
stroke: #a4456f;
-webkit-animation-delay: -1.2s;
animation-delay: -1.2s;
}
.design-svg .text:nth-child(5n + 2) {
stroke: #126DA6;
-webkit-animation-delay: -2.4s;
animation-delay: -2.4s;
}
.design-svg .text:nth-child(5n + 3) {
stroke: #05F2F2;
-webkit-animation-delay: -3.6s;
animation-delay: -3.6s;
}
.design-svg .text:nth-child(5n + 4) {
stroke: #9e91a6;
-webkit-animation-delay: -4.8s;
animation-delay: -4.8s;
}
.design-svg .text:nth-child(5n + 5) {
stroke: #9aa8bd;
-webkit-animation-delay: -6s;
animation-delay: -6s;
}
@-webkit-keyframes stroke {
100% {
stroke-dashoffset: -400;
}
}
@keyframes stroke {
100% {
stroke-dashoffset: -400;
}
}
</style>
<title>Document</title>
</head>
<body>
<div class="panel">
<svg display="none" >
<symbol id="s-text" viewBox="0 0 127 54">
<text x="0%" y="50%" dy=".10em" >Design</text>
</symbol>
</svg>
<svg class="design-svg" height="54" width="127">
<use xlink:href="#s-text" class="text"></use>
<use xlink:href="#s-text" class="text"></use>
<use xlink:href="#s-text" class="text"></use>
<use xlink:href="#s-text" class="text"></use>
<use xlink:href="#s-text" class="text"></use>
</svg>
</div>
</body>
</html>