-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
323 lines (248 loc) · 11.3 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
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
<!DOCTYPE html>
<html lang="en">
<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">
<title>SVG Animation</title>
</head>
<style>
.wrap {
margin: 500px;
margin-bottom: 100px;
background-color: chartreuse;
}
.plus-wrap {
margin: 500px;
margin-top: 100px;
margin-bottom: 100px;
background-color: aquamarine;
}
.plus-wrap-rotate {
display: flex ;
margin: 500px;
margin-top: 100px;
background-color: yellow;
}
#chevron:hover {
animation-name: spin;
animation-duration: 1000ms;
animation-delay: 12000ms
/* animation-timing-function: ease-in-out; */
animation-timing-function:cubic-bezier(.5,-800,.5,800);
transform-origin: center center;
-webkit-animation-iteration-count: 1;
-webkit-animation-name: spin;
/* background-color:red; */
}
#vertical:hover {
animation-name: spin-plus;
animation-duration: 600ms;
animation-delay: 12000ms
/* animation-timing-function: ease-in-out; */
animation-timing-function:cubic-bezier(.5,-800,.5,800);
transform-origin: center center;
-webkit-animation-iteration-count: 1;
-webkit-animation-name: spin-plus;
background-color:red;
}
#plus-rotate:hover {
animation-name: rotate;
animation-duration: 2000ms;
animation-delay: 12000ms
/* animation-timing-function:cubic-bezier(.5,-800,.5,800); */
animation-timing-function: ease-in-out;
transform-origin: center center;
-webkit-animation-iteration-count: 1;
-webkit-animation-name: rotate;
}
#scale-vertical {
animation-name: scale1;
animation-duration: 900ms;
/* animation-delay: 2000; */
animation-timing-function: ease-in-out;
transform-origin: center center;
-webkit-animation-iteration-count: infinite;
animation-direction: alternate-reverse;
}
@keyframes spin {
to {
stroke-dashoffset: 400;
rotate: 180deg;
}
}
@keyframes spin-plus{
to {
rotate: 90deg;
animation-play-state: paused;
animation-fill-mode: forwards;
}
}
@keyframes rotate{
to {
stroke-dashoffset: 400;
rotate: 315deg;
/* background-color: blue; */
}
}
@keyframes scale1 {
0%{
tranform: scaleY(0.7)
-webkit-transform: scalY(1);
background-color: yellow;
}
50% {
tranform: scaleY(0.5);
-webkit-transform: scaleY(0);
background-color: blue;
}
100% {
tranform: scaleY(0);
-webkit-transform: scaleY(0);
background-color: blue;
}
}
h1 {
text-align: center;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-decoration: dotted;
text-decoration-line: underline;
font-size: xx-large;
}
</style>
<body>
<div class="wrap" onclick="spin">
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1417.32 1417.32" style="enable-background:new 0 0 1417.32 1417.32;" xml:space="preserve">
<polygon id = "chevron" points="957.7,913.2 706.88,676.75 461.19,912.87 371.9,860.77 706.21,538.7 1046.3,860.44 "/>
</svg>
</div>
<div class="plus-wrap">
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1417.32 1417.32" style="enable-background:new 0 0 1417.32 1417.32;" xml:space="preserve">
<g>
<g id="horizontal">
<rect x="646.17" y="402.34" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 1417.3229 1.136868e-13)" class="st0" width="124.98" height="612.64"/>
</g>
<g id="vertical">
<rect x="646.17" y="402.34" width="124.98" height="612.64"/>
</g>
</g>
</svg>
</div>
<div class="plus-wrap-rotate">
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="plus-rotate" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1417.32 1417.32" style="enable-background:new 0 0 1417.32 1417.32;" xml:space="preserve">
<polygon points="1014.98,646.17 771.15,646.17 771.15,402.34 646.17,402.34 646.17,646.17 402.34,646.17 402.34,771.15
646.17,771.15 646.17,1014.98 771.15,1014.98 771.15,771.15 1014.98,771.15 "/>
</svg>
</div>
<h1 class="text">Hier die exportierten Logos aus Figma</h1>
<div class="wrap" >
<h1>Chevron Rotation</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="chevron" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333233;}
</style>
<path class="st0" d="M125.26,148.24l3.87,4l12.6-12.98l12.6,12.98l3.87-4l-16.47-17.01L125.26,148.24z"/>
</svg>
</div>
<div class="wrap" >
<h1>BG-Chevron-Rotation</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333233;}
.st1{fill:#FFFFFF;}
</style>
<path id="BG" class="st0" d="M141.73,113.39c-17.08,0-30.94,12.7-30.94,28.35c0,15.65,13.86,28.35,30.94,28.35
c17.08,0,30.94-12.7,30.94-28.35C172.67,126.09,158.81,113.39,141.73,113.39z"/>
<path id="chevron" class="st1" d="M125.26,148.37l3.87,4l12.6-12.98l12.6,12.98l3.87-4l-16.47-17.01L125.26,148.37z"/>
</svg>
</div>
<div class="plus-wrap" >
<h1>Plus-Fold</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333333;}
</style>
<rect id="vertical" x="138.64" y="121.89" class="st0" width="6.19" height="39.69"/>
<rect id="horizontal" x="138.92" y="120.08" transform="matrix(-3.921405e-07 -1 1 -3.921405e-07 5.557897e-05 283.4646)" class="st0" width="5.63" height="43.31"/>
</svg>
</div>
<div class="plus-wrap" >
<h1>BG-Plus-Fold</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333233;}
.st1{fill:#FFFFFF;}
</style>
<path id="BG" class="st0" d="M141.73,113.39c-17.08,0-30.94,12.7-30.94,28.35c0,15.65,13.86,28.35,30.94,28.35
c17.08,0,30.94-12.7,30.94-28.35C172.67,126.09,158.81,113.39,141.73,113.39z"/>
<rect id="vertical" x="138.64" y="127.56" class="st1" width="6.19" height="28.35"/>
<rect id="horizontal" x="126.26" y="138.9" class="st1" width="30.94" height="5.67"/>
</svg>
</div>
<div class="plus-wrap-rotate">
<h1>Plus-Rotation</h1>
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="plus-rotate" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1417.32 1417.32" style="enable-background:new 0 0 1417.32 1417.32;" xml:space="preserve">
<polygon points="1014.98,646.17 771.15,646.17 771.15,402.34 646.17,402.34 646.17,646.17 402.34,646.17 402.34,771.15
646.17,771.15 646.17,1014.98 771.15,1014.98 771.15,771.15 1014.98,771.15 "/>
</svg>
</div>
<div class="plus-wrap-rotate">
<h1>BG-Plus-Rotation</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333233;}
.st1{fill:#FFFFFF;}
</style>
<path id="BG" class="st0" d="M141.73,111.02c-17.6,0-31.89,13.76-31.89,30.71c0,16.95,14.29,30.71,31.89,30.71
s31.89-13.76,31.89-30.71C173.62,124.78,159.34,111.02,141.73,111.02z"/>
<polygon id="plus-rotate" class="st1" points="157.68,144.8 144.92,144.8 144.92,157.09 138.54,157.09 138.54,144.8 125.79,144.8
125.79,138.66 138.54,138.66 138.54,126.38 144.92,126.38 144.92,138.66 157.68,138.66 "/>
</svg>
</div>
<div class="plus-wrap">
<h1>BG-Plus-Scale</h1>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 283.46 283.46" style="enable-background:new 0 0 283.46 283.46;" xml:space="preserve">
<style type="text/css">
.st0{fill:#333233;}
.st1{fill:#FFFFFF;}
</style>
<path id="BG" class="st0" d="M141.73,113.39c-17.08,0-30.94,12.7-30.94,28.35c0,15.65,13.86,28.35,30.94,28.35
c17.08,0,30.94-12.7,30.94-28.35C172.67,126.09,158.81,113.39,141.73,113.39z"/>
<rect id="scale-vertical" x="138.64" y="127.56" class="st1" width="6.19" height="28.35"/>
<rect id="horizontal" x="126.26" y="138.9" class="st1" width="30.94" height="5.67"/>
<!-- <svg version="1.1" id="plus-rotate" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1417.32 1417.32" style="enable-background:new 0 0 1417.32 1417.32;" xml:space="preserve">
<polygon id="plus-rotate" class="st1" points="1014.98,646.17 771.15,646.17 771.15,402.34 646.17,402.34 646.17,646.17 402.34,646.17 402.34,771.15
646.17,771.15 646.17,1014.98 771.15,1014.98 771.15,771.15 1014.98,771.15 "/>
</svg> -->
</svg>
</div>
<div class="wrap" id="scale-vertical" style="height:500px;width: 500px;"></div>
</body>
</html>