Skip to content

Commit 4b85e5f

Browse files
committed
improved ui
2 parents 241ab15 + 224c872 commit 4b85e5f

File tree

19 files changed

+2152
-0
lines changed

19 files changed

+2152
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
body {
2+
margin: 0;
3+
height: 100vh;
4+
background: radial-gradient(circle at 50% 100%, #0b0b0b 0%, #111 80%);
5+
overflow: hidden;
6+
position: relative;
7+
}
8+
9+
.rain {
10+
position: absolute;
11+
width: 100%;
12+
height: 100%;
13+
top: 0;
14+
left: 0;
15+
overflow: hidden;
16+
}
17+
18+
.rain span {
19+
position: absolute;
20+
top: -10%;
21+
left: calc(var(--x) * 1%);
22+
width: 2px;
23+
height: calc(20px + var(--s) * 4px);
24+
background: linear-gradient(to bottom, rgba(173,216,230,0), rgba(173,216,230,0.9));
25+
border-radius: 1px;
26+
filter: blur(calc(var(--s) * 0.6px));
27+
opacity: 0.8;
28+
animation: fall linear infinite;
29+
animation-duration: calc(1s + var(--s) * 0.3s);
30+
animation-delay: calc(var(--x) * -0.07s);
31+
}
32+
33+
@keyframes fall {
34+
0% {
35+
transform: translateY(0) scaleY(1);
36+
opacity: 0;
37+
}
38+
10% {
39+
opacity: 1;
40+
}
41+
90% {
42+
opacity: 1;
43+
}
44+
100% {
45+
transform: translateY(105vh) scaleY(0.4);
46+
opacity: 0;
47+
}
48+
}
49+
50+
.rain span::after {
51+
content: "";
52+
position: absolute;
53+
bottom: 0;
54+
left: -2px;
55+
width: 6px;
56+
height: 2px;
57+
background: rgba(173, 216, 230, 0.6);
58+
border-radius: 50%;
59+
transform: scale(0);
60+
animation: splash linear infinite;
61+
animation-duration: inherit;
62+
animation-delay: inherit;
63+
}
64+
65+
@keyframes splash {
66+
0%, 90% {
67+
transform: scale(0);
68+
opacity: 0;
69+
}
70+
95% {
71+
transform: scale(1.6);
72+
opacity: 0.8;
73+
}
74+
100% {
75+
transform: scale(0);
76+
opacity: 0;
77+
}
78+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Pure CSS Real Rain</title>
7+
<link rel="stylesheet" href="rainfallAnimation.css">
8+
</head>
9+
<body>
10+
<div class="rain">
11+
<span style="--x:10; --s:1;"></span>
12+
<span style="--x:15; --s:0.7;"></span>
13+
<span style="--x:20; --s:1.2;"></span>
14+
<span style="--x:25; --s:0.9;"></span>
15+
<span style="--x:30; --s:0.8;"></span>
16+
<span style="--x:35; --s:1.1;"></span>
17+
<span style="--x:40; --s:0.6;"></span>
18+
<span style="--x:45; --s:1.3;"></span>
19+
<span style="--x:50; --s:1;"></span>
20+
<span style="--x:55; --s:0.8;"></span>
21+
<span style="--x:60; --s:1.1;"></span>
22+
<span style="--x:65; --s:0.9;"></span>
23+
<span style="--x:70; --s:1.2;"></span>
24+
<span style="--x:75; --s:0.7;"></span>
25+
<span style="--x:80; --s:1;"></span>
26+
<span style="--x:85; --s:0.8;"></span>
27+
<span style="--x:90; --s:1.2;"></span>
28+
<span style="--x:95; --s:0.9;"></span>
29+
</div>
30+
</body>
31+
</html>

Interactive Resume/demo.mp4

55.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)