-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathNeon.css
147 lines (130 loc) · 2.51 KB
/
Neon.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
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
143
144
145
146
147
body{
min-height: 100vh;
background: #000;
margin: 0px;
padding: 0px;
display: flex;
justify-content: center;
align-items: center;
font-size: 50px;
font-family:monospace ;
}
.t1, .t2{
text-decoration: none;
position: relative;
padding: 15px 30px;
overflow: hidden;
transition: 0.2s all;
color: #fff;
text-transform: uppercase;
letter-spacing: 4px;
}
.t1:hover{
background: #c0262e;
color: #000;
box-shadow: 0px 0px 10px #c31432, 0px 0px 80px #c31432;
transition-delay: 1s;
}
.t2 span, .t1 span{
position: absolute;
display: inline-block;
}
.t1 span:nth-child(1){
top: 0px;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, #c31432);
}
.t1:hover span:nth-child(1){
left: 100%;
transition: 0.5s;
}
.t1 span:nth-child(3){
bottom: 0px;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg, transparent, #c31432);
}
.t1:hover span:nth-child(3){
right: 100%;
transition: 0.5s;
transition-delay: 0.5s;
}
.t1 span:nth-child(2){
top: -100%;
right: 0px;
width: 2px;
height: 100%;
background: linear-gradient(180deg, transparent, #c31432);
}
.t1:hover span:nth-child(2){
top: 100%;
transition: 0.5s;
transition-delay: 0.25s;
}
.t1 span:nth-child(4){
bottom: -100%;
left: 0px;
width: 2px;
height: 100%;
background: linear-gradient(360deg, transparent, #c31432);
}
.t1:hover span:nth-child(4){
bottom: 100%;
transition: 0.5s;
transition-delay: 0.75s;
}
.t2:hover{
background: #38ef7d;
color: #000;
box-shadow: 0px 0px 10px #38ef7d, 0px 0px 40px #38ef7d, 0px 0px 80px #38ef7d;
transition: 0.2s; ;
}
.t2 span:nth-child(1){
top: 0px;
left: -91%;
width: 100%;
height: 2px;
background: #38ef7d;
}
.t2:hover span:nth-child(1){
left:0%;
transition: 0.3s;
}
.t2 span:nth-child(3){
bottom: 0px;
right: -91%;
width: 100%;
height: 2px;
background: #38ef7d;
}
.t2:hover span:nth-child(3){
right: 0%;
transition: 0.3s;
}
.t2 span:nth-child(2){
bottom: -70%;
right: 0%;
width: 2px;
font-weight: 100;
background: #38ef7d;
height: 100%;
}
.t2:hover span:nth-child(2){
bottom: 0%;
transition: 0.3s;
}
.t2 span:nth-child(4){
top: -70%;
left: 0%;
width: 2px;
font-weight: 100;
background: #38ef7d;
height: 100%;
}
.t2:hover span:nth-child(4){
top: 0%;
transition: 0.3s;
}