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
.grow-switch {
position: relative;
display: inline-block;
width: 90px;
height: 90px;
cursor: pointer;
border-radius: 50%;
filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
-webkit-tap-highlight-color: transparent;
}
.grow-switch input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.g-bg {
position: absolute;
inset: 0;
border-radius: 50%;
overflow: hidden;
border: 4px solid #ffffff;
box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.28);
background: linear-gradient(180deg, #d9c9a3 0%, #efe2c4 55%, #efe2c4 100%);
transition: background 1s ease;
z-index: 1;
}
.g-sky {
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 30%, #cdeeca 0%, #a9dfae 55%, #82c88e 100%);
opacity: 0;
transition: opacity 1s ease;
}
.g-rays {
position: absolute;
inset: 0;
opacity: 0;
transform: scale(0.6) rotate(0deg);
transition: opacity 0.8s ease 0.3s, transform 6s linear;
}
.ray {
position: absolute;
top: 8px;
left: 50%;
width: 2px;
height: 14px;
background: rgba(255, 224, 130, 0.75);
transform-origin: 50% 37px;
border-radius: 2px;
}
.g-soil {
position: absolute;
bottom: -22px;
left: -12px;
width: 118px;
height: 46px;
background: linear-gradient(180deg, #6b4a2c 0%, #4a3018 100%);
border-radius: 50%;
z-index: 3;
transition: background 1s ease;
}
.g-soil::before {
content: "";
position: absolute;
top: 2px;
left: 8px;
right: 8px;
height: 5px;
background: rgba(0,0,0,0.18);
border-radius: 50%;
filter: blur(1px);
}
.g-seed {
position: absolute;
bottom: 20px;
left: 50%;
width: 9px;
height: 12px;
transform: translateX(-50%) scale(1);
background: radial-gradient(ellipse at 35% 30%, #a9865a, #6b4d2c 80%);
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
z-index: 4;
opacity: 1;
transition: opacity 0.4s ease, transform 0.4s ease;
}
.g-plant {
position: absolute;
bottom: 18px;
left: 50%;
width: 46px;
height: 62px;
transform: translateX(-50%) scaleY(0);
transform-origin: bottom center;
z-index: 4;
transition: transform 0.9s cubic-bezier(0.34, 1.3, 0.4, 1);
}
.g-petal {
transform-origin: 23px 12px;
transition: transform 0.6s ease 0.5s;
}
.g-flower-group {
opacity: 0;
transform: scale(0.4);
transform-origin: 23px 12px;
transition: opacity 0.4s ease 0.55s, transform 0.5s cubic-bezier(0.34,1.6,0.4,1) 0.55s;
}
.g-leaf {
opacity: 0;
transition: opacity 0.4s ease;
}
.g-leaf-l { transform-origin: 23px 42px; transition-delay: 0.35s; }
.g-leaf-r { transform-origin: 23px 34px; transition-delay: 0.45s; }
.g-butterfly {
position: absolute;
top: 6px;
right: 10px;
width: 14px;
height: 12px;
opacity: 0;
transform: translate(6px, 4px) scale(0.7);
transition: opacity 0.5s ease 1.1s, transform 0.5s ease 1.1s;
}
.g-wing { animation: none; transform-origin: 7px 6px; }
.grow-switch input:checked + .g-bg {
background: linear-gradient(180deg, #cdeeca 0%, #a9dfae 100%);
}
.grow-switch input:checked + .g-bg .g-sky { opacity: 1; }
.grow-switch input:checked + .g-bg .g-rays {
opacity: 1;
transform: scale(1) rotate(45deg);
}
.grow-switch input:checked + .g-bg .g-soil {
background: linear-gradient(180deg, #4a3320 0%, #33220f 100%);
}
.grow-switch input:checked + .g-bg .g-seed {
opacity: 0;
transform: translateX(-50%) scale(0.3);
}
.grow-switch input:checked + .g-bg .g-plant {
transform: translateX(-50%) scaleY(1);
}
.grow-switch input:checked + .g-bg .g-leaf { opacity: 1; }
.grow-switch input:checked + .g-bg .g-flower-group {
opacity: 1;
transform: scale(1);
}
.grow-switch input:checked + .g-bg .g-butterfly {
opacity: 1;
transform: translate(0, 0) scale(1);
}
.grow-switch input:checked + .g-bg .g-wing {
animation: flap 0.5s ease-in-out infinite alternate 1.3s;
}
@keyframes flap {
0% { transform: scaleX(1); }
100% { transform: scaleX(0.55); }
}
You need to sign in before you can write a comment.