-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.css
80 lines (62 loc) · 1.28 KB
/
index.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
* {
padding: 0;
margin: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
background-image: url("https://pic1.zhimg.com/80/v2-f62fa4868599f3f2e74c329696e7daec_1440w.jpg?source=1940ef5c");
}
.container a {
position: relative;
display: block;
width: 140px;
height: 60px;
float:left;
line-height: 60px;
text-align: center;
margin: 40px;
color: aqua;
font-size: 20px;
text-decoration: none;
transition: all 0.3s ease-in-out;
filter: hue-rotate(calc(var(--i) * 60deg));
}
.container a::before,
.container a::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
border: 2px solid aqua;
transition: all 0.3s ease-in-out 0.3s;
}
.container a::before {
top: 0;
left: 0;
border-right: 0;
border-bottom: 0;
}
.container a::after {
right: 0;
bottom: 0;
border-top: 0;
border-left: 0;
}
.container a:hover {
background-color: aqua;
color: #000;
box-shadow: 0 0 50px aqua;
-webkit-box-reflect: below 1px
linear-gradient(transparent, rgba(0, 0, 0, 0.3));
transition-delay: 0.4s;
}
.container a:hover::before,
.container a:hover::after {
width: 138px;
height: 58px;
transition-delay: 0s;
}