-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
117 lines (109 loc) · 2.19 KB
/
index.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
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #111;
--scroll-speed: 0.4s;
}
.main-container {
position: absolute;
top: 0;
top: 0;
width: 100dvw;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: flex-end;
}
.group {
position: relative;
transform: rotate(-30deg);
display: flex;
flex-direction: column;
gap: 1rem;
}
.kumiko-container {
display: flex;
gap: 0.5rem;
width: 200dvw;
}
.kumiko-container:nth-child(even) {
animation: animateEven 100s linear infinite;
}
@media (any-hover: hover) {
.kumiko-container:nth-child(even) img:hover {
transform: rotate3d(1, 1, 0.2, 25deg);
}
}
.kumiko-container:nth-child(odd) {
animation: animateOdd 100s linear infinite;
}
@media (any-hover: hover) {
.kumiko-container:nth-child(odd) img:hover {
transform: rotate3d(1, 1, 0.2, -25deg);
}
}
.kumiko-container img {
touch-action: none;
width: 120px;
height: 120px;
cursor: grab;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
transform: none;
transition: 0.25s;
box-shadow: rgba(195, 199, 203, 0.3) 0px 1px 2px 0px, rgba(195, 199, 203, 0.15) 0px 1px 3px 1px;
}
.kumiko-container img:hover {
box-shadow: rgba(195, 199, 203, 0.25) 0px 6px 12px -2px, rgba(255, 255, 255, 0.3) 0px 3px 7px -3px;
}
.no-animation {
animation: none !important;
}
.animation-even {
animation: rotate-diagonal-1 var(--scroll-speed) linear both;
}
.animation-odd {
animation: rotate-diagonal-2 var(--scroll-speed) linear both;
}
@keyframes animateEven {
0%, 100% {
transform: translateX(0dvw);
}
50% {
transform: translateX(-100dvw);
}
}
@keyframes animateOdd {
0%, 100% {
transform: translateX(-100dvw);
}
50% {
transform: translateX(0dvw);
}
}
@keyframes rotate-diagonal-1 {
0% {
transform: rotate3d(1, 1, 0, 0deg);
}
50% {
transform: rotate3d(1, 1, 0, -180deg);
}
100% {
transform: rotate3d(1, 1, 0, -360deg);
}
}
@keyframes rotate-diagonal-2 {
0% {
transform: rotate3d(1, 1, 0, 2360deg);
}
50% {
transform: rotate3d(1, 1, 0, -180deg);
}
100% {
transform: rotate3d(1, 1, 0, 0deg);
}
}/*# sourceMappingURL=index.css.map */