-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
64 lines (57 loc) · 1.14 KB
/
index.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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1b1b1b;
overflow: hidden;
}
.circle{
position: absolute;
width: 250px;
height: 250px;
border-radius: 50%;
background: radial-gradient(#fb3640, #ffbf00);
box-shadow: 0 0 250px #ff6f59;
animation: animate 15s ease-in-out infinite;
}
.glass {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.glass .layer {
position: relative;
width: 40px;
height: 100vh;
margin: 1px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(30px);
}
.glass .layer:nth-child(4n + 1) {
backdrop-filter: blur(10px);
}
.glass .layer:nth-child(4n + 2) {
backdrop-filter: blur(50px);
}
.glass .layer:nth-child(4n + 3) {
backdrop-filter: blur(30px);
}
.glass .layer:nth-child(4n + 4) {
backdrop-filter: blur(20px);
}
@keyframes animate {
0%,
100% {
transform: translatex(-700px);
}
50% {
transform: translatex(700px);
}
}