-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesting.css
235 lines (207 loc) · 4.27 KB
/
testing.css
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
body {
margin: 0;
overflow: hidden;
}
#rain {
position: fixed;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #202020, #111119);
pointer-events: none;
z-index: 1; /* Ensure rain is behind the umbrella */
}
.raindrop {
position: absolute;
background: rgba(255, 255, 255, 0.6);
width: 2px;
height: none;
box-shadow: 0 0 35px 1px rgba(255, 255, 255, 0.5);
animation: fall linear infinite;
}
@keyframes fall {
to {
transform: translateY(150vh);
opacity:0;
}
}
@keyframes gustFallLeft {
to {
transform: translateY(150vh);
rotate:3deg;
}
}
@keyframes gustFallRight {
to {
transform: translateY(150vh);
rotate:-3deg;
}
}
@keyframes hailFall {
to {
transform: translateY(200vh);
}
}
@keyframes snowflakeFall {
0% {
rotate:0.1deg;
}
25% {
rotate:0.2deg;
}
50% {
rotate:0.4deg;
}
75% {
rotate:0.8deg;
}
85% {
rotate:0.6deg;
}
100% {
rotate:0.5deg;
transform: translateY(120vh);
}
}
.snowflake {
user-select: none;
}
.container {
position: relative;
z-index: 2;
}
#follower {
user-select: none;
position: absolute;
width: 100px; /* Set your image width */
height: 100px; /* Set your image height */
transition: transform 0.1s ease;
}
.ring {
position: absolute;
border: 5px solid rgb(255, 255, 255); /* Set the color of the ring */
animation: ringFade 1s ease-out, ringExpand 1s ease-out;
z-index: 3;
opacity: 0; /* Initially hidden */
left: 150px;
top: 150px;
border-radius: 50%;
width: 15px;
height: 15px;
transform: translate(-50%, -50%);
transition: width 0.5s, height 0.5s;
}
.ring.active {
animation-name: ringExpand, ringFade;
animation-duration: 0.5s, 1s;
animation-timing-function: ease-out, ease-out;
animation-fill-mode: forwards, forwards;
}
@keyframes fade {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes ringExpand {
to {
width: 200px;
height:200px;
}
}
@keyframes ringFade {
0%, 100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
.afterimage {
position: absolute;
width: 100px; /* Set your image width */
height: 100px; /* Set your image height */
transition: opacity 0.3s ease;
transform-origin: center center;
z-index: 5;
}
/* NEW SECTION FOR CUTSCENE -------------------------------------------------------------------*/
/*
#scene {
position: relative;
background-color:#111119;
width: 100vw;
height: 100vh;
}
.sphere {
position: absolute;
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 50%;
animation: sphereAnimation 5s linear forwards;
}
.shockwave {
position: absolute;
width: 0%;
height: 0%;
background-color: transparent;
border: 20px solid #fff;
border-radius: 50%;
animation: shockwaveAnimation 5s ease-in;
opacity: 0;
animation-play-state: paused;
}
@keyframes sphereAnimation {
0% {
transform: translate(-50%, -50%) scale(0);
box-shadow: 0 0 0 0 rgba(115, 115, 115, 0.1);
}
50% {
rotate:0deg;
box-shadow: 0 0 200px 100px rgba(172, 172, 172, 0.5);
}
90% {
rotate:0deg;
transform: translate(650px, 550px) scale(2);
box-shadow: 0 0 20px 10px rgba(255, 255, 255, 1);
}
100% {
transform: translate(650px,550px) scale(0.1);
box-shadow: 0 0 500px 300px rgba(255, 255, 255, 1);
}
}
@keyframes shockwaveAnimation {
0% {
transform: scale(0);
opacity: 1;
box-shadow: 0 0 500px 300px rgb(0, 0, 0, 1);
}
50% {
box-shadow: 0 0 500px 300px rgb(135, 135, 135);
}
100% {
transform: scale(50);
box-shadow: 0 0 5000px 3000px rgba(255, 255, 255, 1);
opacity: 1;
}
}
#fadein {
position: absolute;
width: 100vw;
height: 100vh;
background-color: rgb(255, 255, 255);
opacity: 0;
animation: fadeInAnimation 10s linear forwards;
animation-play-state: paused;
}
@keyframes fadeInAnimation {
1% {
opacity: 1;
}
100% {
opacity: 0;
}
}
*/