-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
123 lines (109 loc) · 2.11 KB
/
style.css
File metadata and controls
123 lines (109 loc) · 2.11 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100vh;
}
:root {
--icon-color: #a6a2c5;
--item-color: #353566;
}
header {
background: var(--soft-dark);
display: flex;
}
.wrapper {
width: 100%;
max-width: 950px;
margin: 0 auto;
}
ul {
display: flex;
justify-content: space-around;
list-style: none;
}
.item-link {
padding: 15px;
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
}
.item-icon {
margin-bottom: 5px;
opacity: 1;
transform: translateY(0px);
clip-path: polygon(0 0, 0 100%, 100% 100%,100% 0);
transition: transform, opacity, clip-path;
transition-duration: 800ms;
transition-timing-function: ease-in-out;
transition-delay: 200ms;
}
.item-text {
font-size: 25px;
color: var(--item-color);
font-family: sans-serif;
font-weight: bold;
position: absolute;
opacity: 0;
transform: translateY(0);
transition: transform, opacity;
transition-duration: 500ms;
transition-timing-function: ease-in-out;
transition-delay: 100ms;
}
.item-dot {
display: block;
width: 8px;
height: 8px;
background-color: var(--item-color);
border-radius: 50%;
opacity: 0;
transform: scale(0) translateY(0);
transition: transform, opacity;
transition-duration: 500ms;
transition-delay: 200ms;
}
.item-circle-explosion {
display: block;
width: 130px;
height: 130px;
border: 43px solid var(--icon-color);
background-color: transparent;
border-radius: 50%;
top: 4px;
position: absolute;
opacity: 0;
transform: scale(0);
transition: transform, opacity, border;
transition-delay: 40ms;
transition-duration: 140ms;
}
.item-link.active .item-icon {
opacity: 0;
clip-path: polygon(0px 0px, 0px 25.46%, 100% 90.91%, 100% 0px);
transform: translateY(-50px);
}
.item-link.active .item-text {
opacity: 1;
transform: translateY(-10px);
}
.item-link.active .item-dot {
opacity: 1;
transform: scale(1) translateY(-10px);
/*1 is the original size*/
}
.item-link.active .item-circle-explosion {
opacity: 1;
border: 0px solid var(--icon-color);
transform: scale(1);
}