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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
vars
|
3 |
+
*/
|
4 |
+
:root {
|
5 |
+
--tagcloud-transition-user-duration: 1250ms;
|
6 |
+
--tagcloud-transition-user-ease: ease-in-out;
|
7 |
+
--tagcloud-transition-duration: 250ms;
|
8 |
+
--tagcloud-transition-ease: ease-out;
|
9 |
+
--tagcloud-bg-color-rgb: 0, 0, 0;
|
10 |
+
--tagcloud-animation-duration: 25s;
|
11 |
+
--tagcloud-animation-direction: normal;
|
12 |
+
--tagcloud-animation-play-state: running;
|
13 |
+
--tagcloud-diameter: 32rem;
|
14 |
+
--tagcloud-start-rotation: 54;
|
15 |
+
--tagcloud-controls-diameter: 256rem;
|
16 |
+
--tagcloud-control-bg-color: transparent;
|
17 |
+
--tagcloud-control-bg-hover-color: transparent;
|
18 |
+
--tagcloud-control-bg-checked-color: transparent;
|
19 |
+
--tag-diameter: 5.5rem;
|
20 |
+
--tag-font-color-rgb: 255, 255, 255;
|
21 |
+
--tag-font-family: 'Open Sans', sans-serif;
|
22 |
+
--tag-font-size: 1rem;
|
23 |
+
}
|
24 |
+
|
25 |
+
/*
|
26 |
+
global
|
27 |
+
*/
|
28 |
+
@import url(//fonts.googleapis.com/css?family=Open+Sans);
|
29 |
+
|
30 |
+
*, *::before, *::after {
|
31 |
+
margin: 0;
|
32 |
+
padding: 0;
|
33 |
+
border: 0;
|
34 |
+
box-sizing: border-box;
|
35 |
+
}
|
36 |
+
|
37 |
+
*:focus {
|
38 |
+
outline: none;
|
39 |
+
}
|
40 |
+
|
41 |
+
body {
|
42 |
+
display: flex;
|
43 |
+
align-items: center;
|
44 |
+
justify-content: center;
|
45 |
+
height: 100vh;
|
46 |
+
background-color: rgb(var(--tagcloud-bg-color-rgb));
|
47 |
+
overflow: hidden;
|
48 |
+
}
|
49 |
+
|
50 |
+
/*
|
51 |
+
tagcloud
|
52 |
+
*/
|
53 |
+
.tagcloud-wrapper {
|
54 |
+
--_control-diamater: var(--tagcloud-controls-diameter);
|
55 |
+
--_control-radius: calc(var(--_control-diamater) / 2);
|
56 |
+
--_diameter: var(--tagcloud-diameter);
|
57 |
+
--_radius: calc(calc(var(--_diameter) / 2) - calc(var(--tag-diameter) / 2));
|
58 |
+
width: var(--control-diameter);
|
59 |
+
aspect-ratio: 1 / 1;
|
60 |
+
font-family: var(--tag-font-family);
|
61 |
+
font-size: var(--tag-font-size);
|
62 |
+
}
|
63 |
+
|
64 |
+
@media only screen and (max-width: 48rem) {
|
65 |
+
.tagcloud-wrapper {
|
66 |
+
--_control-diamater: calc(var(--tagcloud-controls-diameter) * 0.5);
|
67 |
+
--_diameter: calc(var(--tagcloud-diameter) * 0.88);
|
68 |
+
}
|
69 |
+
}
|
70 |
+
@media only screen and (max-width: 32rem) {
|
71 |
+
.tagcloud-wrapper {
|
72 |
+
--_diameter: calc(var(--tagcloud-diameter) * 0.75);
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
.tagcloud-wrapper:has(.tagcloud-rotation:hover) {
|
77 |
+
--tagcloud-animation-play-state: paused;
|
78 |
+
}
|
79 |
+
|
80 |
+
.tagcloud-wrapper .tagcloud-tags {
|
81 |
+
position: absolute;
|
82 |
+
width: var(--_diameter);
|
83 |
+
aspect-ratio: 1 / 1;
|
84 |
+
left: 50%;
|
85 |
+
top: 50%;
|
86 |
+
transform: translate(-50%, -50%);
|
87 |
+
list-style-type: none;
|
88 |
+
position: relative;
|
89 |
+
transform-style: inherit;
|
90 |
+
animation: tagcloud-rotation var(--tagcloud-animation-duration) var(--tagcloud-animation-direction) linear infinite var(--tagcloud-animation-play-state);
|
91 |
+
}
|
92 |
+
|
93 |
+
@keyframes tagcloud-rotation {
|
94 |
+
from {transform: translate(-50%, -50%) rotateX(0deg);}
|
95 |
+
to {transform: translate(-50%, -50%) rotateX(360deg);}
|
96 |
+
}
|
97 |
+
|
98 |
+
.tagcloud-wrapper .tagcloud-tags:has(.tagcloud-tag div a:hover) .tagcloud-tag:not(:has(div a:hover)) {
|
99 |
+
opacity: 0.25;
|
100 |
+
}
|
101 |
+
|
102 |
+
.tagcloud-wrapper .tagcloud-tag {
|
103 |
+
--_phi: acos(calc(-1 + (2 * var(--index)) / var(--num-elements)));
|
104 |
+
--_theta: calc(sqrt(calc(var(--num-elements) * 3.141592653589793)) * var(--_phi));
|
105 |
+
--_x: calc(cos(var(--_theta)) * sin(var(--_phi)));
|
106 |
+
--_y: calc(sin(var(--_theta)) * sin(var(--_phi)));
|
107 |
+
--_z: calc(cos(var(--_phi)));
|
108 |
+
--_vector-length: sqrt(var(--_x) * var(--_x) + var(--_y) * var(--_y) + var(--_z) * var(--_z));
|
109 |
+
--_normalized-x: calc(var(--_x) / var(--_vector-length));
|
110 |
+
--_normalized-y: calc(var(--_y) / var(--_vector-length));
|
111 |
+
--_normalized-z: calc(var(--_z) / var(--_vector-length));
|
112 |
+
--_scaled-x: calc(var(--_normalized-x) * var(--_radius));
|
113 |
+
--_scaled-y: calc(var(--_normalized-y) * var(--_radius));
|
114 |
+
--_scaled-z: calc(var(--_normalized-z) * var(--_radius));
|
115 |
+
--_final-x: calc(var(--_scaled-x) + var(--_radius));
|
116 |
+
--_final-y: calc(var(--_scaled-y) + var(--_radius));
|
117 |
+
--_final-z: var(--_scaled-z);
|
118 |
+
pointer-events: none;
|
119 |
+
width: var(--tag-diameter);
|
120 |
+
height: var(--tag-diameter);
|
121 |
+
display: flex;
|
122 |
+
align-items: center;
|
123 |
+
justify-content: center;
|
124 |
+
position: absolute;
|
125 |
+
transition: opacity var(--tagcloud-transition-duration) var(--tagcloud-transition-ease);
|
126 |
+
transform: translate3d(var(--_final-x), var(--_final-y), var(--_final-z));
|
127 |
+
animation: tagcloud-tag-rotation var(--tagcloud-animation-duration) var(--tagcloud-animation-direction) linear infinite var(--tagcloud-animation-play-state);
|
128 |
+
}
|
129 |
+
|
130 |
+
@keyframes tagcloud-tag-rotation {
|
131 |
+
from {transform: translate3d(var(--_final-x), var(--_final-y), var(--_final-z)) rotateX(360deg);}
|
132 |
+
to {transform: translate3d(var(--_final-x), var(--_final-y), var(--_final-z)) rotateX(0deg);}
|
133 |
+
}
|
134 |
+
|
135 |
+
.tagcloud-wrapper .tagcloud-tag div {
|
136 |
+
transform: rotateZ(calc(var(--_current-rotation) * -1deg));
|
137 |
+
transition: transform var(--tagcloud-transition-user-duration) var(--tagcloud-transition-user-ease);
|
138 |
+
}
|
139 |
+
|
140 |
+
.tagcloud-wrapper .tagcloud-tag div a {
|
141 |
+
pointer-events: initial;
|
142 |
+
color: rgb(var(--tag-font-color-rgb));
|
143 |
+
text-decoration: none;
|
144 |
+
text-shadow: 1px 1px 1px rgb(var(--tagcloud-bg-color-rgb)),
|
145 |
+
1px -1px 1px rgb(var(--tagcloud-bg-color-rgb)),
|
146 |
+
-1px 1px 1px rgb(var(--tagcloud-bg-color-rgb)),
|
147 |
+
-1px -1px 1px rgb(var(--tagcloud-bg-color-rgb)),
|
148 |
+
0 0 1rem rgb(var(--tagcloud-bg-color-rgb));
|
149 |
+
}
|
150 |
+
|
151 |
+
.tagcloud-wrapper .tagcloud-controls {
|
152 |
+
width: var(--_control-diamater);
|
153 |
+
aspect-ratio: 1 / 1;
|
154 |
+
position: relative;
|
155 |
+
--_current-rotation: var(--tagcloud-start-rotation);
|
156 |
+
transform-style: inherit;
|
157 |
+
}
|
158 |
+
|
159 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button {
|
160 |
+
--_width: var(--_control-radius);
|
161 |
+
--_height: calc(var(--_control-diamater) * 3.141592653589793 / var(--num-elements) + 1px);
|
162 |
+
--_theta-start: 0;
|
163 |
+
--_theta-length: calc(2 * 3.141592653589793);
|
164 |
+
--_segment: calc(var(--_theta-start) + var(--index) / var(--num-elements) * var(--_theta-length));
|
165 |
+
--_x: calc(var(--_control-radius) * cos(var(--_segment)));
|
166 |
+
--_y: calc(var(--_control-radius) * sin(var(--_segment)) + var(--_control-radius) - var(--_height) / 2);
|
167 |
+
--_rotation: calc(var(--index) / var(--num-elements) * 360deg);
|
168 |
+
position: absolute;
|
169 |
+
left: var(--_x);
|
170 |
+
top: var(--_y);
|
171 |
+
width: var(--_width);
|
172 |
+
height: var(--_height);
|
173 |
+
clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
|
174 |
+
transform-origin: right center;
|
175 |
+
transform: rotate(var(--_rotation));
|
176 |
+
transition: background-color var(--tagcloud-transition-duration) var(--tagcloud-transition-ease);
|
177 |
+
background-color: var(--tagcloud-control-bg-color);
|
178 |
+
}
|
179 |
+
|
180 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button input {
|
181 |
+
-webkit-appearance: none;
|
182 |
+
appearance: none;
|
183 |
+
opacity: 0;
|
184 |
+
width: 100%;
|
185 |
+
height: 100%;
|
186 |
+
}
|
187 |
+
|
188 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button:has(input:checked) {
|
189 |
+
background-color: var(--tagcloud-control-bg-checked-color);
|
190 |
+
}
|
191 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button:has(input:hover) {
|
192 |
+
background-color: var(--tagcloud-control-bg-hover-color);
|
193 |
+
}
|
194 |
+
|
195 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(1) input:checked) {
|
196 |
+
--_current-rotation: 108;
|
197 |
+
}
|
198 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(2) input:checked) {
|
199 |
+
--_current-rotation: 126;
|
200 |
+
}
|
201 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(3) input:checked) {
|
202 |
+
--_current-rotation: 144;
|
203 |
+
}
|
204 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(4) input:checked) {
|
205 |
+
--_current-rotation: 162;
|
206 |
+
}
|
207 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(5) input:checked) {
|
208 |
+
--_current-rotation: 180;
|
209 |
+
}
|
210 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(6) input:checked) {
|
211 |
+
--_current-rotation: 198;
|
212 |
+
}
|
213 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(7) input:checked) {
|
214 |
+
--_current-rotation: 216;
|
215 |
+
}
|
216 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(8) input:checked) {
|
217 |
+
--_current-rotation: 234;
|
218 |
+
}
|
219 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(9) input:checked) {
|
220 |
+
--_current-rotation: 252;
|
221 |
+
}
|
222 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(10) input:checked) {
|
223 |
+
--_current-rotation: 270;
|
224 |
+
}
|
225 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(11) input:checked) {
|
226 |
+
--_current-rotation: 288;
|
227 |
+
}
|
228 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(12) input:checked) {
|
229 |
+
--_current-rotation: 306;
|
230 |
+
}
|
231 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(13) input:checked) {
|
232 |
+
--_current-rotation: 324;
|
233 |
+
}
|
234 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(14) input:checked) {
|
235 |
+
--_current-rotation: 342;
|
236 |
+
}
|
237 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(15) input:checked) {
|
238 |
+
--_current-rotation: 0;
|
239 |
+
}
|
240 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(16) input:checked) {
|
241 |
+
--_current-rotation: 18;
|
242 |
+
}
|
243 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(17) input:checked) {
|
244 |
+
--_current-rotation: 36;
|
245 |
+
}
|
246 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(18) input:checked) {
|
247 |
+
--_current-rotation: 54;
|
248 |
+
}
|
249 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(19) input:checked) {
|
250 |
+
--_current-rotation: 72;
|
251 |
+
}
|
252 |
+
.tagcloud-wrapper .tagcloud-controls:has(.tagcloud-control-button:nth-child(20) input:checked) {
|
253 |
+
--_current-rotation: 90;
|
254 |
+
}
|
255 |
+
|
256 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button:has(input:checked) ~ .tagcloud-rotation {
|
257 |
+
transform: translate(-50%, -50%) rotate(calc(var(--_current-rotation) * 1deg));
|
258 |
+
}
|
259 |
+
|
260 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-control-button:has(input:checked) ~ .tagcloud-rotation .tagcloud-tags .tagcloud-tag div {
|
261 |
+
transform: rotateZ(calc(var(--_current-rotation) * -1deg));
|
262 |
+
}
|
263 |
+
|
264 |
+
.tagcloud-wrapper .tagcloud-controls .tagcloud-rotation {
|
265 |
+
position: absolute;
|
266 |
+
width: var(--_diameter);
|
267 |
+
aspect-ratio: 1 / 1;
|
268 |
+
perspective: calc(var(--_diameter) * 2);
|
269 |
+
transform-style: preserve-3d;
|
270 |
+
left: 50%;
|
271 |
+
top: 50%;
|
272 |
+
background: radial-gradient(rgba(var(--tagcloud-bg-color-rgb), 0.75) 15% , rgba(var(--tagcloud-bg-color-rgb), 0) calc(75% - var(--tag-diameter)));
|
273 |
+
border-radius: 50%;
|
274 |
+
transform: translate(-50%, -50%) rotate(calc(var(--_current-rotation) * 1deg));
|
275 |
+
transition: transform var(--tagcloud-transition-user-duration) var(--tagcloud-transition-user-ease);
|
276 |
+
}
|