forked from LanKeEn-TARC/TSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.css
49 lines (43 loc) · 853 Bytes
/
test.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
a{
position: relative;
display:inline-block;
padding: 15px 30px;
color: #2196f3;
letter-spacing: 4px;
text-decoration: none;
font-size: 24px;
overflow: hidden;
transition: 0.2s;
}
a:hover{
color: #255784;
background: #2196f3;
box-shadow: 0 0 10px #2196f3, 0 0 40px #2196f3, 0 0 80px #2196f3;
transition-delay: 0.6s;
}
nav ul li a span{
position: absolute;
display: block;
}
nav ul li a span:nth-child(1){
top: 0;
left: -100%;
width: 100%;
height: 2px;
background:linear-gradient(270deg, transparent, #2196f3);
}
nav ul li a:hover span:nth-child(1){
left:100%;
transition:0.5s;
}
nav ul li a span:nth-child(3){
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background:linear-gradient(270deg, transparent, #2196f3);
}
nav ul li a:hover span:nth-child(3){
right:100%;
transition:0.5s;
}