-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
142 lines (125 loc) · 2.67 KB
/
style.css
File metadata and controls
142 lines (125 loc) · 2.67 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #27282c;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 120px;
}
.container a {
position: relative;
padding: 16px 30px;
font-size: 1.5rem;
color: var(--clr);
text-shadow: 0 0 5px var(--clr);
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.1em;
transition: 0.5s;
border: 2px solid rgba(0, 0, 0, 0.5);
}
.container a:hover {
color: #fff;
border: 2px solid rgba(0, 0, 0, 0);
text-shadow: 0 0 0px var(--clr);
}
.container a::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--clr);
z-index: -1;
transform: scale(0);
transition: 0.5s;
}
.container a:hover::before {
transform: scale(1);
transition-delay: 0.5s;
box-shadow: 0 0 10px var(--clr),
0 0 30px var(--clr),
0 0 60px var(--clr);
}
.container a span {
position: absolute;
background: var(--clr);
pointer-events: none;
box-shadow:
0 0 10px var(--clr),
0 0 20px var(--clr),
0 0 30px var(--clr),
0 0 50px var(--clr),
0 0 100px var(--clr);
}
.container a span:nth-child(1),
.container a span:nth-child(3) {
width: 40px;
height: 4px;
}
.container a span:nth-child(2),
.container a span:nth-child(4) {
width: 4px;
height: 40px;
}
.container a span:nth-child(1) {
top: calc(50% - 2px);
left: -50px;
transform-origin: left;
transition: 0.5s ease-in-out;
transition-delay: 0.25s;
}
.container a:hover span:nth-child(1) {
left: 50%;
transform: scaleX(0);
transition-delay: 0s;
}
.container a span:nth-child(3) {
top: calc(50% - 2px);
right: -50px;
transform-origin: right;
transition: 0.5s ease-in-out;
transition-delay: 0.25s;
}
.container a:hover span:nth-child(3) {
right: 50%;
transform: scaleX(0);
transition-delay: 0s;
}
.container a span:nth-child(2) {
left: calc(50% - 2px);
top: -50px;
transform-origin: top;
transition: 0.5s ease-in-out;
transition-delay: 0.25s;
}
.container a:hover span:nth-child(2) {
top: 50%;
transform: scaleY(0);
transition-delay: 0s;
}
.container a span:nth-child(4) {
left: calc(50% - 2px);
bottom: -50px;
transform-origin: bottom;
transition: 0.5s ease-in-out;
transition-delay: 0.25s;
}
.container a:hover span:nth-child(4) {
bottom: 50%;
transform: scaleY(0);
transition-delay: 0s;
}