-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (79 loc) · 1.56 KB
/
style.css
File metadata and controls
91 lines (79 loc) · 1.56 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
/*rgb(0, 255, 98);*/
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #000;
}
a {
display: inline-block;
padding: 20px 40px;
text-decoration: none;
text-transform: uppercase;
color: rgb(0, 255, 98);
overflow: hidden;
position: relative;
font-size: 20px;
letter-spacing: 5px;
transition: 0.25s;
}
a:hover {
background-color: rgb(0, 255, 98);
box-shadow: 0 0 5px rgb(0, 255, 98), 0 0 10px rgb(0, 255, 98),
0 0 15px rgb(0, 255, 98), 0 0 20px rgb(0, 255, 98);
color: #000;
transition-delay: 1s;
}
a span {
position: absolute;
display: block;
content: "";
}
a span:nth-child(1) {
top: 0;
left: -100%;
width: 100%;
height: 3px;
background: linear-gradient(90deg, transparent, rgb(0, 255, 98));
}
a:hover span:nth-child(1) {
left: 100%;
transition: 1s;
}
a span:nth-child(2) {
top: -100%;
right: 0;
height: 100%;
width: 3px;
background: linear-gradient(180deg, transparent, rgb(0, 255, 98));
}
a:hover span:nth-child(2) {
top: 100%;
transition: 1s;
transition-delay: 0.25s;
}
a span:nth-child(3) {
bottom: 0;
right: -100%;
width: 100%;
height: 3px;
background: linear-gradient(270deg, transparent, rgb(0, 255, 98));
}
a:hover span:nth-child(3) {
right: 100%;
transition: 1s;
transition-delay: 0.5s;
}
a span:nth-child(4) {
bottom: -100%;
left: 0;
height: 100%;
width: 3px;
background: linear-gradient(180deg, transparent, rgb(0, 255, 98));
}
a:hover span:nth-child(4) {
bottom: 100%;
transition: 1s;
transition-delay: 0.75s;
}