-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfade-leaves-separately.html
114 lines (103 loc) · 2.9 KB
/
fade-leaves-separately.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
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { margin: 0; }
.svg-container {
display: flex;
justify-content: center;
}
.svg-container svg {
width: 50vw;
}
@keyframes leaves {
0% {opacity: 0;}
50% {opacity: 1;}
100% {opacity: 0;}
}
@keyframes left-leaf {
0% {opacity: 0;}
25% {opacity: 1;}
50% {opacity: 1;}
75% {opacity: 1;}
100% {opacity: 0;}
}
.left-leaf {
animation: left-leaf 4s ease-in-out infinite;
}
@keyframes right-leaf {
0% {opacity: 0;}
25% {opacity: 0;}
50% {opacity: 1;}
75% {opacity: 1;}
100% {opacity: 0;}
}
.right-leaf {
animation: right-leaf 4s ease-in-out infinite;
}
@keyframes dot {
0% {opacity: 0;}
25% {opacity: 0;}
50% {opacity: 0;}
75% {opacity: 1;}
100% {opacity: 0;}
}
.dot {
animation: dot 4s ease-in-out infinite;
}
</style>
</head>
<body>
<div class="svg-container">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 274.43 311.87">
<defs>
<style>
/* background */
.cls-1,.cls-3,.cls-5 {
fill: #00b18f;
}
.cls-1, .cls-2 {
clip-rule: evenodd;
}
.cls-2 {
fill: none;
}
.cls-3 {
fill-rule: evenodd;
}
.cls-4 {
clip-path: url(#clip-path);
}
.cls-6 {
clip-path:url(#clip-path-2);
}
/* dot and leaves */
.cls-7 {
fill: #fff;
}
</style>
<clipPath id="clip-path">
<path class="cls-1" d="M11.57,71.6A19.78,19.78,0,0,0,1.74,88.7V223.16a19.75,19.75,0,0,0,9.83,17.09l115.82,67.23a19.55,19.55,0,0,0,19.65,0l115.83-67.23a19.74,19.74,0,0,0,9.82-17.09V88.7a19.77,19.77,0,0,0-9.82-17.1L147,4.38a19.6,19.6,0,0,0-19.65,0Z"/>
</clipPath>
<clipPath id="clip-path-2">
<path class="cls-2" d="M173.25,105.48a34,34,0,1,1-34-34A34,34,0,0,1,173.25,105.48Z"/>
</clipPath>
</defs>
<title>Asset 1</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Logo">
<path class="cls-3" d="M11.57,71.6A19.78,19.78,0,0,0,1.74,88.7V223.16a19.75,19.75,0,0,0,9.83,17.09l115.82,67.23a19.55,19.55,0,0,0,19.65,0l115.83-67.23a19.74,19.74,0,0,0,9.82-17.09V88.7a19.77,19.77,0,0,0-9.82-17.1L147,4.38a19.6,19.6,0,0,0-19.65,0Z"/>
<g class="cls-4">
<rect class="cls-5" width="274.43" height="311.87"/>
</g>
<g class="cls-6 dot">
<rect class="cls-7" x="103.26" y="69.57" width="71.99" height="71.83"/>
</g>
<path class="cls-7 left-leaf" d="M138.83,236.81c0-.82,0-1.63,0-2.45,0-58.15-45.24-105.31-101.15-105.6a110.24,110.24,0,0,0-.56,11.12c0,45.48,27.67,84.24,66.46,99.12a98.35,98.35,0,0,0,34.74,6.72"/>
<path class="cls-7 right-leaf" d="M138.35,245.72h1.08a98.45,98.45,0,0,0,46.4-11.59h-.25c33.09-17.42,55.77-53.08,55.77-94.26a108.81,108.81,0,0,0-.55-11c-54.25,2.22-97.59,48.6-97.59,105.52,0,.79,0,1.58,0,2.37-1.26.05-2.53.09-3.81.09h-.6"/>
</g>
</g>
</svg>
</div>
</body>
</html>