-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
87 lines (65 loc) · 1.29 KB
/
styles.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
body{
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
background-color: black;
}
a{
text-decoration: none;
color: white;
}
ul {
list-style-type: none;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: white;
}
li{
border: 4px solid goldenrod;
padding: 20px 80px 20px 80px;
border-radius: 20px;
font-family: monospace;
letter-spacing: 0.4em;
font-size: larger;
font-weight: bold;
z-index: 1;
position: relative;
overflow: hidden;
transition: 0.5s;
}
li:hover{
cursor: pointer;
}
li span{
position: absolute;
background-color: goldenrod;
height: 100%;
width:25%;
border-radius: 100px;
z-index: -1;
transform: translateY(150%);
transition: 0.5s;
}
/* scale for increasing the size whilw transition */
li:hover span{
transform: translateY(0) scale(2);
}
ul li span:nth-child(1){
transition-delay: 0;
left: 0;
}
ul li span:nth-child(2){
transition-delay: 0.1s;
left: 25%;
}
ul li span:nth-child(3){
transition-delay: 0.2s;
left: 50%;
}
ul li span:nth-child(4){
transition-delay: 0.3s;
left: 75%;
}