-
Notifications
You must be signed in to change notification settings - Fork 0
/
icon.css
61 lines (61 loc) · 1.43 KB
/
icon.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #10131c;
}
.navigation{
position: relative;
width: 70px;
height: 70px;
background: #212532;
border-radius: 10px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s;
transition-delay: 0.8s;
}
.navigation.active{
width: 200px;
height: 200px;
transition-delay: 0s;
}
.navigation span{
position: absolute;
width: 7px;
height: 7px;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
transform: translate(calc(12px * var(--x)), calc(12px * var(--y)));
transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
transition-delay: calc(0.1s * var(--i));
}
.navigation.active span{
width: 45px;
height: 45px;
background: #333849;
transform: translate(calc(60px * var(--x)), calc(60px * var(--y)));
}
.navigation span ion-icon{
transition: 0.5s;
font-size: 0em;
}
.navigation.active span ion-icon{
font-size: 1.35em;
color: #fff;
}
.navigation.active span:hover ion-icon{
color: #2dfc52;
filter: drop-shadow(0 0 0px #2dfc52) drop-shadow(0 0 2px #2dfc52) drop-shadow(0 0 15px #2dfc52);
}