-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
89 lines (89 loc) · 1.77 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
88
89
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #7d2ae8;
}
.navbar{
position: relative;
height: 120px;
width: 500px;
background: #fff;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.navbar ul{
position: relative;
display: flex;
}
.navbar ul li{
position: relative;
list-style-type: none;
}
.navbar ul li a{
position: relative;
height: 120px;
width: 90px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
}
.navbar ul li a i{
position: absolute;
font-size: 38px;
color: #7d2ae8;
}
ul li a i.activeIcon{
opacity: 0;
pointer-events: none;
transition: all 0.6s ease;
transition-delay: 0.2s;
}
.navbar ul li.active a i{
opacity: 1;
pointer-events: auto;
}
.navbar ul .indicator{
position: absolute;
bottom: -19px;
left: 34px;
height: 36px;
width: 25px;
background: #7d2ae8;
border-radius: 50%;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
ul .indicator::before{
content: "";
position: absolute;
left: -15px;
bottom: 50%;
height: 22px;
width: 20px;
background: #fff;
border-bottom-right-radius: 20px;
box-shadow: 0 10px 0 #7d2ae8;
}
ul .indicator::after{
content: "";
position: absolute;
right: -15px;
bottom: 50%;
height: 22px;
width: 20px;
background: #fff;
border-bottom-left-radius: 20px;
box-shadow: 0 10px 0 #7d2ae8;
}