-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
63 lines (54 loc) · 1.05 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container{
width: 100%;
height: 100vh;
background-color: black;
overflow: hidden;
animation: hovered 4s linear infinite;
}
.row{
display: inline-flex;
/* to make those shapes on upper side and left in viewbox */
margin-top: -30px;
margin-left: -50px;
}
/* For removing the space between the shapes */
.row:nth-child(even){
margin-left: 1px;
}
.shape{
position: relative;
width: 100px;
height: 100px;
background: black;
margin: 1px;
/* for hexagonal shape */
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
transition: 2s;
}
.shape::before{
position: absolute;
content: '';
top: 0;
left: 0;
width: 50%;
height: 100%;
pointer-events: none;
background-color: rgba(255, 255, 255, 0.02);
}
.shape:hover{
transition: 0s;
background: #51ff0d;
}
@keyframes hovered {
0%{
filter: hue-rotate(0deg);
}
100%{
filter: hue-rotate(360deg);
}
}