-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
116 lines (103 loc) · 2.27 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
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
overflow: hidden;
}
section {
position: absolute;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #873394, #1EA49F );
}
section::before {
content: '';
position: absolute;
width: 100%;
height: 50%;
bottom: 0;
z-index: 10;
border-top: 1px solid rgba(255, 255, 255, 0.5);
background-color: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(10px);
}
section .color {
position: absolute;
filter: blur(150px);
}
section .color:nth-child(1) {
top: -350px;
background: #873394;
width: 600px;
height: 600px;
}
section .color:nth-child(2) {
bottom: -150px;
left: 100px;
background: #fffd87;
width: 500px;
height: 500px;
}
section .color:nth-child(3) {
bottom: -50px;
right: 0px;
background: #00d2ff;
width: 300px;
height: 300px;
}
ul {
position: relative;
display: flex;
}
ul li {
position: relative;
list-style: none;
margin: 10px;
}
ul li a {
position: relative;
top: 0;
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 2em;
border: 1px solid rgba(255, 255, 255, 0.4);
border-right: 1px solid rgba(255, 255, 255, 0.2);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(4px);
z-index: 1;
box-shadow: 0 5px 45px rgba(255, 255, 255, 0.1);
text-decoration: none;
overflow: hidden;
transition: top 0.5s, z-index 0s, transform 0.5s;
transition-delay: 0.5s, 0.5s, 0s;
}
ul li a:hover {
transition-delay: 0.s, 0.5s, 0.5s;
top: -50px;
transform: translateY(-50px);
z-index: 11;
}
ul li a:before {
content: '';
position: absolute;
top: 0;
width: 50px;
height: 100%;
background: rgba(255, 255, 255, 0.5);
transform: skewX(45deg) translateX(150px);
transition: 0.5s;
}
ul li a:hover:before {
transform: skewX(45deg) translateX(-150px);
}