-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (66 loc) · 1.22 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
/* background: #181c1f; */
background: #0AA1DD;
}
.container {
position: relative;
height: 400px;
border-bottom: 2px solid #fff;
}
.cloud {
position: relative;
top: 50px;
width: 320px;
height: 100px;
background: #fff;
border-radius: 100px;
}
.cloud::before {
content: '';
position: absolute;
top: -50px;
left: 40px;
width: 110px;
height: 110px;
background: #fff;
border-radius: 50%;
box-shadow: 90px 0 0 30px #fff;
}
.rain {
position: relative;
display: flex;
z-index: 1;
padding: 0 20px;
}
.rain span {
position: relative;
bottom: 10px;
width: 10px;
height: 10px;
background: #fff;
margin: 0 2px;
border-radius: 50%;
animation: animate 5s linear infinite;
animation-duration: calc(15s / var(--i));
transform-origin: bottom;
}
@keyframes animate {
0% {
transform: translateY(0) scale(1);
}
70% {
transform: translateY(298px) scale(1);
}
100% {
transform: translateY(298px) scale(0);
}
}