-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
80 lines (69 loc) · 1.29 KB
/
style.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
* {
user-select: none;
margin: 0;
padding: 0;
box-sizing: border-box;
cursor: none;
}
body {
/* display: flex;
justify-content: center;
align-items: center; */
min-height: 100vh;
background: black;
}
.hexagon {
position: relative;
margin: 1px;
width: 100px;
height: 110px;
background: #111;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
transition: 2s;
}
.hexagon::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
background: rgba(255,255,255,0.02);
z-index: 1000;
}
.hexagon::after {
content: '';
position: absolute;
top: 4px;
bottom: 4px;
left: 4px;
right: 4px;
background: #111;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hexagon:hover {
background: #0f0;
transition: 0s;
}
.container {
animation: anime 2.5s linear infinite;
position: relative;
height: 100vh;
overflow: hidden;
}
.stringOrRow {
display: inline-flex;
margin-top: -32px;
margin-left: -50px;
}
.stringOrRow:nth-child(even) {
margin-left: 1px;
}
@keyframes anime {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}