@duskmoon-dev/el-art-plasma-ball 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,781 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/index.ts
40
+ var exports_src = {};
41
+ __export(exports_src, {
42
+ register: () => register,
43
+ ElDmArtPlasmaBall: () => ElDmArtPlasmaBall
44
+ });
45
+ module.exports = __toCommonJS(exports_src);
46
+
47
+ // src/el-dm-art-plasma-ball.ts
48
+ var import_el_base = require("@duskmoon-dev/el-base");
49
+
50
+ // ../../node_modules/.bun/@duskmoon-dev+css-art@0.3.0/node_modules/@duskmoon-dev/css-art/dist/art/plasma-ball.css
51
+ var plasma_ball_default = `@layer css-art {
52
+ .art-plasma-ball {
53
+ --art-plasma-ball-size: 350px;
54
+ --art-plasma-ball-base-color: #222222;
55
+ --art-plasma-ball-switch-size: calc(var(--art-plasma-ball-size) * 37 / 350);
56
+ position: relative;
57
+ margin: 0 auto;
58
+ width: var(--art-plasma-ball-size);
59
+ height: var(--art-plasma-ball-size);
60
+ box-sizing: border-box;
61
+
62
+ * {
63
+ box-sizing: border-box;
64
+ }
65
+
66
+ .base {
67
+ position: absolute;
68
+ background: var(--art-plasma-ball-base-color);
69
+ width: calc(var(--art-plasma-ball-size) * 6 / 7);
70
+ height: calc(var(--art-plasma-ball-size) * 4 / 7);
71
+ margin: calc(var(--art-plasma-ball-size) * 48 / 350) auto;
72
+ top: calc(var(--art-plasma-ball-size) * 286 / 350);
73
+ left: calc(var(--art-plasma-ball-size) * 25 / 350);
74
+ }
75
+ .base:before {
76
+ position: absolute;
77
+ top: calc(var(--art-plasma-ball-size) * -44 / 350);
78
+ width: calc(var(--art-plasma-ball-size) * 300 / 350);
79
+ height: calc(var(--art-plasma-ball-size) * 80 / 350);
80
+ border-radius: 100%;
81
+ content: "";
82
+ background: radial-gradient(#222 20%, #353535);
83
+ background: conic-gradient(from 167deg, #666666, #232323, #232323, #666666);
84
+ border: 2px solid #597481;
85
+ box-sizing: border-box;
86
+ left: 0;
87
+ z-index: 0;
88
+ }
89
+ .base:after {
90
+ position: absolute;
91
+ left: calc(var(--art-plasma-ball-size) * -35 / 350);
92
+ bottom: calc(var(--art-plasma-ball-size) * -65 / 350);
93
+ width: calc(var(--art-plasma-ball-size) * 370 / 350);
94
+ height: calc(var(--art-plasma-ball-size) * 110 / 350);
95
+ border-radius: 30% 30% 50% 50%;
96
+ content: "";
97
+ background: var(--art-plasma-ball-base-color);
98
+ z-index: -1;
99
+ }
100
+ .base div {
101
+ background: var(--art-plasma-ball-base-color);
102
+ height: calc(var(--art-plasma-ball-size) * 100 / 350);
103
+ margin-top: calc(var(--art-plasma-ball-size) * 48 / 350);
104
+ float: left;
105
+ margin-left: calc(var(--art-plasma-ball-size) * -53 / 350);
106
+ width: 63%;
107
+ transform: rotate(-85deg);
108
+ z-index: -1;
109
+ position: relative;
110
+ }
111
+ .base div + div {
112
+ margin-top: calc(var(--art-plasma-ball-size) * -99 / 350);
113
+ margin-left: calc(var(--art-plasma-ball-size) * 164 / 350);
114
+ transform: rotate(85deg);
115
+ }
116
+ .base span {
117
+ position: absolute;
118
+ left: calc(var(--art-plasma-ball-size) * -51 / 350);
119
+ bottom: calc(var(--art-plasma-ball-size) * -4 / 350);
120
+ width: calc(var(--art-plasma-ball-size) * 402 / 350);
121
+ height: calc(var(--art-plasma-ball-size) * 160 / 350);
122
+ border-radius: 0% 0% 80% 80%;
123
+ content: "";
124
+ background: #242f3400;
125
+ z-index: 0;
126
+ border: 2px solid transparent;
127
+ border-bottom-color: #435761;
128
+ }
129
+ input.switcher {
130
+ width: calc(var(--art-plasma-ball-size) * 48 / 350);
131
+ height: calc(var(--art-plasma-ball-size) * 48 / 350);
132
+ opacity: 0;
133
+ position: absolute;
134
+ z-index: 3333;
135
+ margin: 0;
136
+ cursor: pointer;
137
+ outline: none;
138
+ border-radius: calc(var(--art-plasma-ball-size) * 50 / 350) !important;
139
+ top: calc(var(--art-plasma-ball-size) * 425 / 350);
140
+ left: calc(var(--art-plasma-ball-size) * 151 / 350);
141
+ }
142
+ .glassball {
143
+ position: absolute;
144
+ overflow: hidden;
145
+ margin: 0 auto;
146
+ width: 100%;
147
+ height: 100%;
148
+ border-radius: 100%;
149
+ background-color: rgb(255 255 255 / 0.15);
150
+ top: 0%;
151
+ box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2),
152
+ inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
153
+ z-index: 1;
154
+ }
155
+ .glassball:after {
156
+ background: radial-gradient(
157
+ ellipse at center,
158
+ rgba(255, 255, 255, 0.5) 0%,
159
+ rgba(255, 255, 255, 0) 70%
160
+ );
161
+ border-radius: 50%;
162
+ box-shadow: inset 0 20px 30px rgb(255 255 255 / 30%);
163
+ content: "";
164
+ height: 96%;
165
+ left: 2%;
166
+ position: absolute;
167
+ width: 96%;
168
+ top: 2%;
169
+ z-index: 1;
170
+ }
171
+ .glassball:hover {
172
+ cursor: grab;
173
+ }
174
+ .glassball:before {
175
+ position: absolute;
176
+ left: 48%;
177
+ top: 50%;
178
+ width: 0px;
179
+ height: 0px;
180
+ background: radial-gradient(circle closest-side, #9c27b0, transparent);
181
+ transform: translate(-45%, -48%);
182
+ transition: width 0.2s ease, height 0.2s ease;
183
+ animation: art-plasma-ball-spark 5ms ease 0s infinite alternate;
184
+ border: 8px dotted #24e6ff;
185
+ filter: blur(15px);
186
+ border-radius: 100%;
187
+ z-index: 2;
188
+ font-size: 10em;
189
+ color: #d6faff;
190
+ text-align: center;
191
+ line-height: 1;
192
+ content: "s";
193
+ display: none;
194
+ opacity: 0.75;
195
+ }
196
+ .glassball:hover:before {
197
+ width: calc(var(--art-plasma-ball-size) * 120 / 350);
198
+ height: calc(var(--art-plasma-ball-size) * 150 / 350);
199
+ }
200
+ input.switcher:checked + .glassball:before,
201
+ input.switcher:checked + .glassball:after {
202
+ display: block;
203
+ }
204
+ input.switcher:checked + .glassball:after {
205
+ width: 97%;
206
+ height: 97%;
207
+ left: 1.5%;
208
+ top: 1.5%;
209
+ }
210
+ input.switcher:checked + .glassball:hover:after {
211
+ animation: art-plasma-ball-rotation 3s ease 0s infinite alternate;
212
+ background: radial-gradient(
213
+ ellipse at center,
214
+ #ffffff7d 0%,
215
+ #54ecff94 10%,
216
+ transparent 100%
217
+ );
218
+ filter: brightness(1.75);
219
+ opacity: 0.5;
220
+ }
221
+ input.switcher:checked + .glassball {
222
+ transform: translate3d(0, 0, 0);
223
+ backface-visibility: hidden;
224
+ perspective: calc(var(--art-plasma-ball-size) * 1000 / 350);
225
+ background: radial-gradient(
226
+ circle,
227
+ #ff5affb8 0%,
228
+ #ff5affb8 20%,
229
+ #5493d2a8 70%,
230
+ #5493d2a8 100%
231
+ );
232
+ animation: art-plasma-ball-innerlight 5s linear 0s infinite,
233
+ art-plasma-ball-shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
234
+ transition: background 0.4s ease 0s;
235
+ box-shadow: 0 0 15px 5px #5493d2a8;
236
+ border: 1px solid transparent;
237
+ }
238
+
239
+ .switch {
240
+ background: #1b1b1b;
241
+ width: var(--art-plasma-ball-switch-size);
242
+ height: var(--art-plasma-ball-switch-size);
243
+ position: absolute;
244
+ left: calc(50% - var(--art-plasma-ball-switch-size) / 2);
245
+ top: calc(var(--art-plasma-ball-size) * 430 / 350);
246
+ border: 3px solid #4e4e4e;
247
+ z-index: 5;
248
+ border-radius: 100%;
249
+ box-shadow: 0 0 10px 0px #000000, 0 0 5px 1px #2d2d2d, 0 0 3px 1px #000 inset;
250
+ }
251
+ .switch::before {
252
+ content: "";
253
+ position: absolute;
254
+ width: calc(var(--art-plasma-ball-switch-size) * 16 / 37);
255
+ height: calc(var(--art-plasma-ball-switch-size) * 16 / 37);
256
+ bottom: calc(var(--art-plasma-ball-switch-size) * 6 / 37);
257
+ border: calc(var(--art-plasma-ball-switch-size) * 3 / 37) solid #4e4e4e;
258
+ border-top-color: transparent;
259
+ border-radius: 100%;
260
+ left: calc(var(--art-plasma-ball-switch-size) * 5.5 / 37);
261
+ }
262
+ .switch::after {
263
+ content: "";
264
+ position: absolute;
265
+ width: calc(var(--art-plasma-ball-switch-size) * 3 / 37);
266
+ height: calc(var(--art-plasma-ball-switch-size) * 9 / 37);
267
+ bottom: calc(var(--art-plasma-ball-switch-size) * 14 / 37);
268
+ left: calc(var(--art-plasma-ball-switch-size) * 11.5 / 37);
269
+ background: #4e4e4e;
270
+ }
271
+ input:checked + div + div + .switch {
272
+ background: linear-gradient(to bottom, #171717, #404040);
273
+ color: #fff;
274
+ box-shadow: 0 0 10px 0px #03a9f4, 0 0 5px 1px #03a9f4;
275
+ border-color: #222222d1;
276
+ }
277
+ input:checked + div + div + .switch:before {
278
+ border-color: transparent #03a9f4 #03a9f4 #03a9f4;
279
+ }
280
+ input:checked + div + div + .switch:after {
281
+ background: #03a9f4;
282
+ }
283
+ .electrode {
284
+ width: calc(var(--art-plasma-ball-size) * 16 / 350);
285
+ height: calc(var(--art-plasma-ball-size) * 140 / 350);
286
+ bottom: calc(var(--art-plasma-ball-size) * 20 / 350);
287
+ left: calc(50% - 0.5em);
288
+ position: absolute;
289
+ overflow: visible;
290
+ }
291
+ .electrode:not(.hide-electrode) {
292
+ background: linear-gradient(75deg, #3a3a3a 20%, #2d2d2d);
293
+ border-bottom: 1px solid #657882;
294
+ border-radius: 0 0 6px 5px;
295
+ }
296
+ .electrode:before {
297
+ position: absolute;
298
+ left: calc(var(--art-plasma-ball-size) * -16 / 350);
299
+ top: calc(var(--art-plasma-ball-size) * -40 / 350);
300
+ width: calc(var(--art-plasma-ball-size) * 48 / 350);
301
+ height: calc(var(--art-plasma-ball-size) * 48 / 350);
302
+ border-radius: 100%;
303
+ content: "";
304
+ background: radial-gradient(at top left, #4a4949 20%, #2d2d2d);
305
+ border: 1px solid #758e99;
306
+ box-sizing: border-box;
307
+ }
308
+ .electrode:not(.hide-electrode):after {
309
+ position: absolute;
310
+ left: calc(var(--art-plasma-ball-size) * -3 / 350);
311
+ bottom: calc(var(--art-plasma-ball-size) * -11 / 350);
312
+ width: calc(var(--art-plasma-ball-size) * 22 / 350);
313
+ height: calc(var(--art-plasma-ball-size) * 16 / 350);
314
+ border-radius: calc(var(--art-plasma-ball-size) * 140 / 350) / calc(var(--art-plasma-ball-size) * 50 / 350);
315
+ content: "";
316
+ background: linear-gradient(-263deg, #191919 20%, #0a0a0a);
317
+ z-index: -1;
318
+ }
319
+ input.switcher:checked + .glassball .electrode:after {
320
+ background: linear-gradient(-263deg, #3a3a3a 20%, #2d2d2d);
321
+ }
322
+ input.switcher:checked + .glassball .electrode:before {
323
+ background: radial-gradient(
324
+ ellipse farthest-corner at calc(var(--art-plasma-ball-size) * 30 / 350) calc(var(--art-plasma-ball-size) * 30 / 350),
325
+ #999,
326
+ #e449ff,
327
+ #e449ff,
328
+ #9763ff,
329
+ #62edff,
330
+ #fff
331
+ );
332
+ box-shadow: 0 0 10px 2px #e449ffb3, 0 0 10px 2px #fff,
333
+ 0 0 50px -10px #fff inset;
334
+ border-color: #ffffff94;
335
+ }
336
+ input.switcher + .glassball .rays {
337
+ display: none;
338
+ }
339
+ input.switcher:checked + .glassball .rays {
340
+ display: block;
341
+ float: left;
342
+ width: 100%;
343
+ height: 100%;
344
+ position: absolute;
345
+ }
346
+ .ray {
347
+ width: calc(var(--art-plasma-ball-size) * 160 / 350);
348
+ height: calc(var(--art-plasma-ball-size) * 32 / 350);
349
+ position: absolute;
350
+ bottom: calc(var(--art-plasma-ball-size) * 144 / 350);
351
+ filter: drop-shadow(0px 0px 7px #9660f7) drop-shadow(0px 0px 2px #fff);
352
+ }
353
+ .ray:before {
354
+ content: "";
355
+ width: calc(var(--art-plasma-ball-size) * 8 / 350);
356
+ height: calc(var(--art-plasma-ball-size) * 7.2 / 350);
357
+ border: 2px dashed #03a9f4;
358
+ position: absolute;
359
+ border-width: 3px 3px 1px 1px;
360
+ transform: rotate(87deg);
361
+ top: calc(var(--art-plasma-ball-size) * 4.8 / 350);
362
+ left: calc(var(--art-plasma-ball-size) * 3 / 350);
363
+ border-radius: 10px 5px 8px 7px;
364
+ filter: blur(2px);
365
+ box-shadow: 0 0 10px -1px black;
366
+ }
367
+ .ray:after {
368
+ content: "s";
369
+ float: left;
370
+ width: calc(var(--art-plasma-ball-size) * 32 / 350);
371
+ height: calc(var(--art-plasma-ball-size) * 96 / 350);
372
+ margin-top: calc(var(--art-plasma-ball-size) * 20 / 350);
373
+ margin-left: 0px;
374
+ animation: art-plasma-ball-blink 1s linear 0s infinite alternate;
375
+ background: radial-gradient(circle closest-side, #9c27b0, transparent);
376
+ transform: translate(-45%, -48%);
377
+ transition: width 0.2s ease, height 0.2s ease;
378
+ border: calc(var(--art-plasma-ball-size) * 8 / 350) dotted #24e6ff;
379
+ filter: blur(5px);
380
+ border-radius: 100%;
381
+ z-index: 2;
382
+ font-size: calc(var(--art-plasma-ball-size) * 64 / 350);
383
+ color: #d6faff;
384
+ text-align: center;
385
+ line-height: 1;
386
+ }
387
+ .ray span {
388
+ width: calc(var(--art-plasma-ball-size) * 64 / 350);
389
+ height: calc(var(--art-plasma-ball-size) * 16 / 350);
390
+ border: solid calc(var(--art-plasma-ball-size) * 4 / 350) #000;
391
+ border-radius: 238%/50px 50px 0 0;
392
+ position: absolute;
393
+ top: calc(var(--art-plasma-ball-size) * 8 / 350);
394
+ left: 0;
395
+ border-color: #6bbdff transparent transparent transparent;
396
+ }
397
+
398
+ .ray span + span {
399
+ left: 30%;
400
+ transform: rotate(180deg);
401
+ top: calc(var(--art-plasma-ball-size) * 2.4 / 350);
402
+ }
403
+ .ray span + span + span {
404
+ left: 60%;
405
+ transform: rotate(0deg);
406
+ top: calc(var(--art-plasma-ball-size) * 8 / 350);
407
+ }
408
+
409
+ .ray span:last-of-type:before {
410
+ content: "";
411
+ float: right;
412
+ width: calc(var(--art-plasma-ball-size) * 8 / 350);
413
+ height: calc(var(--art-plasma-ball-size) * 8 / 350);
414
+ background: #d1eefb;
415
+ border-radius: 100%;
416
+ box-shadow: 0 0 4px 3px #fff;
417
+ filter: blur(1px);
418
+ margin-top: calc(var(--art-plasma-ball-size) * -2 / 350);
419
+ left: calc(var(--art-plasma-ball-size) * 3 / 350);
420
+ position: relative;
421
+ }
422
+ .ray.bigwave span:last-of-type:before {
423
+ content: "";
424
+ float: left;
425
+ width: calc(var(--art-plasma-ball-size) * 8 / 350);
426
+ height: calc(var(--art-plasma-ball-size) * 8 / 350);
427
+ background: #d1eefb;
428
+ border-radius: 100%;
429
+ box-shadow: 0 0 4px 3px #fff;
430
+ filter: blur(1px);
431
+ margin-top: calc(var(--art-plasma-ball-size) * -3 / 350);
432
+ left: calc(var(--art-plasma-ball-size) * -2 / 350);
433
+ position: relative;
434
+ }
435
+ .ray.bigwave span {
436
+ width: 55%;
437
+ border-width: calc(var(--art-plasma-ball-size) * 4 / 350);
438
+ }
439
+ .ray.bigwave span + span {
440
+ width: 60%;
441
+ left: 40%;
442
+ border-width: calc(var(--art-plasma-ball-size) * 5 / 350);
443
+ margin-left: calc(var(--art-plasma-ball-size) * 4 / 350);
444
+ margin-top: calc(var(--art-plasma-ball-size) * 2 / 350);
445
+ }
446
+
447
+ .rays + .rays {
448
+ transform: rotate(180deg);
449
+ }
450
+ .rays + .rays + .rays {
451
+ transform: rotate(90deg);
452
+ }
453
+ .rays + .rays + .rays + .rays {
454
+ transform: rotate(270deg);
455
+ }
456
+ .rays + .rays + .rays + .rays + .rays {
457
+ transform: skew(-187deg, 0deg) scale(0.675) rotate(0deg);
458
+ display: none;
459
+ animation: art-plasma-ball-touchray1 2.5s ease 0.1s infinite alternate;
460
+ }
461
+ .rays + .rays + .rays + .rays + .rays + .rays {
462
+ transform: skew(-140deg, -40deg) scale(0.675) rotate(180deg);
463
+ display: none;
464
+ animation: art-plasma-ball-touchray2 1s ease 0.25s infinite;
465
+ }
466
+ input.switcher:checked
467
+ + .glassball:hover
468
+ .rays
469
+ + .rays
470
+ + .rays
471
+ + .rays
472
+ + .rays {
473
+ display: block;
474
+ }
475
+
476
+ .rays + .rays + .rays + .rays + .rays .ray {
477
+ width: calc(var(--art-plasma-ball-size) * 136 / 350);
478
+ animation: art-plasma-ball-ray1 0.5s linear 0s infinite alternate;
479
+ }
480
+ .rays + .rays + .rays + .rays + .rays .ray span {
481
+ border-top-width: calc(var(--art-plasma-ball-size) * 8 / 350);
482
+ }
483
+
484
+ .ray:nth-of-type(1) {
485
+ animation: art-plasma-ball-ray1 0.5s linear 0s infinite;
486
+ }
487
+ .ray:nth-of-type(2) {
488
+ animation: art-plasma-ball-ray1 0.75s linear 0s infinite alternate;
489
+ }
490
+ .ray:nth-of-type(3) {
491
+ animation: art-plasma-ball-ray1 0.65s linear 0s infinite reverse;
492
+ }
493
+ .ray:nth-of-type(4) {
494
+ animation: art-plasma-ball-ray1 0.95s linear 0s infinite alternate;
495
+ }
496
+ .ray:nth-of-type(5) {
497
+ animation: art-plasma-ball-ray1 0.85s linear 0s infinite reverse;
498
+ }
499
+
500
+ .rays + .rays .ray:nth-of-type(1) {
501
+ animation-duration: 1.55s;
502
+ }
503
+ .rays + .rays .ray:nth-of-type(2) {
504
+ animation-duration: 1.75s;
505
+ }
506
+ .rays + .rays .ray:nth-of-type(3) {
507
+ animation-duration: 0.65s;
508
+ }
509
+ .rays + .rays .ray:nth-of-type(4) {
510
+ animation-duration: 1.85s;
511
+ }
512
+ .rays + .rays .ray:nth-of-type(5) {
513
+ animation-duration: 1.6s;
514
+ }
515
+
516
+ .rays + .rays + .rays .ray:nth-of-type(1) {
517
+ animation-duration: 1.15s;
518
+ }
519
+ .rays + .rays + .rays .ray:nth-of-type(2) {
520
+ animation-duration: 1.5s;
521
+ }
522
+ .rays + .rays + .rays .ray:nth-of-type(3) {
523
+ animation-duration: 1.35s;
524
+ }
525
+ .rays + .rays + .rays .ray:nth-of-type(4) {
526
+ animation-duration: 1s;
527
+ }
528
+ .rays + .rays + .rays .ray:nth-of-type(5) {
529
+ animation-duration: 1.25s;
530
+ }
531
+
532
+ .rays + .rays + .rays + .rays .ray:nth-of-type(1) {
533
+ animation-duration: 1.05s;
534
+ }
535
+ .rays + .rays + .rays + .rays .ray:nth-of-type(2) {
536
+ animation-duration: 1.35s;
537
+ }
538
+ .rays + .rays + .rays + .rays .ray:nth-of-type(3) {
539
+ animation-duration: 1.25s;
540
+ }
541
+ .rays + .rays + .rays + .rays .ray:nth-of-type(4) {
542
+ animation-duration: 1.15s;
543
+ }
544
+ .rays + .rays + .rays + .rays .ray:nth-of-type(5) {
545
+ animation-duration: 1.45s;
546
+ }
547
+
548
+ .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(1) {
549
+ animation-duration: 0.85s;
550
+ }
551
+ .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(2) {
552
+ animation-duration: 0.95s;
553
+ }
554
+ .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(3) {
555
+ animation-duration: 0.75s;
556
+ }
557
+
558
+ .rays + .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(1) {
559
+ animation-duration: 1.1s;
560
+ }
561
+ .rays + .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(2) {
562
+ animation-duration: 1.25s;
563
+ }
564
+ .rays + .rays + .rays + .rays + .rays + .rays .ray:nth-of-type(3) {
565
+ animation-duration: 1.35s;
566
+ }
567
+ }
568
+
569
+ /* Size variants */
570
+ .art-plasma-ball-sm {
571
+ --art-plasma-ball-size: 200px;
572
+ }
573
+
574
+ .art-plasma-ball-lg {
575
+ --art-plasma-ball-size: 500px;
576
+ }
577
+
578
+ @keyframes art-plasma-ball-rotation {
579
+ 50% {
580
+ transform: rotate(360deg);
581
+ }
582
+ }
583
+ @keyframes art-plasma-ball-blink {
584
+ 0% {
585
+ background: radial-gradient(circle closest-side, #ff5affb8, #5493d2a8);
586
+ transform: translate(-50%, -50%) scale(0.75) rotate(6deg);
587
+ }
588
+ 50% {
589
+ background: radial-gradient(circle closest-side, #5493d2a8, #ff5affb8);
590
+ transform: translate(-50%, -50%) scale(0.5) rotate(2deg);
591
+ }
592
+ 100% {
593
+ background: radial-gradient(circle closest-side, #ffffffa8, #5493d2a8);
594
+ transform: translate(-50%, -50%) scale(0.35) rotate(11deg);
595
+ }
596
+ }
597
+ @keyframes art-plasma-ball-innerlight {
598
+ 0% {
599
+ background-size: 105% 105%;
600
+ background-position: center center;
601
+ box-shadow: 0 0 15px 5px #5493d2a8;
602
+ }
603
+ 25% {
604
+ box-shadow: 0 0 15px 5px #ff5aff30;
605
+ }
606
+ 50% {
607
+ background-size: 85% 85%;
608
+ background-position: center center;
609
+ box-shadow: 0 0 15px 5px #5493d2a8;
610
+ }
611
+ 75% {
612
+ box-shadow: 0 0 15px 5px #ff5aff30;
613
+ }
614
+ 100% {
615
+ background-size: 105% 105%;
616
+ background-position: center center;
617
+ box-shadow: 0 0 15px 5px #5493d2a8;
618
+ }
619
+ }
620
+ @keyframes art-plasma-ball-touchray1 {
621
+ 0% {
622
+ transform: skew(-187deg, 0deg) scale(0.675) rotate(0deg);
623
+ }
624
+ 50% {
625
+ transform: skew(-185deg, 2deg) scale(0.525) rotate(180deg);
626
+ opacity: 1;
627
+ }
628
+ 51% {
629
+ opacity: 0;
630
+ }
631
+ 52% {
632
+ opacity: 1;
633
+ }
634
+ 100% {
635
+ transform: skew(-188deg, -2deg) scale(0.625) rotate(360deg);
636
+ }
637
+ }
638
+ @keyframes art-plasma-ball-touchray2 {
639
+ 0% {
640
+ transform: skew(-140deg, -40deg) scale(0.675) rotate(140deg);
641
+ }
642
+ 50% {
643
+ transform: skew(-143deg, -42deg) scale(0.525) rotate(0deg);
644
+ opacity: 1;
645
+ }
646
+ 51% {
647
+ opacity: 0;
648
+ }
649
+ 52% {
650
+ opacity: 1;
651
+ }
652
+ 100% {
653
+ transform: skew(-145deg, -38deg) scale(0.625) rotate(210deg);
654
+ }
655
+ }
656
+ @keyframes art-plasma-ball-spark {
657
+ 0% {
658
+ background: radial-gradient(circle closest-side, #ff5affb8, #5493d2a8);
659
+ transform: translate(-50%, -50%) scale(0.75) rotate(0deg);
660
+ }
661
+ 50% {
662
+ background: radial-gradient(circle closest-side, #5493d2a8, #ff5affb8);
663
+ transform: translate(-50%, -50%) scale(0.5) rotate(180deg);
664
+ }
665
+ 100% {
666
+ background: radial-gradient(circle closest-side, #ffffffa8, #5493d2a8);
667
+ transform: translate(-50%, -50%) scale(1) rotate(360deg);
668
+ }
669
+ }
670
+ @keyframes art-plasma-ball-ray1 {
671
+ 0% {
672
+ opacity: 0;
673
+ transform: rotate(0deg) translate(0px, 0px);
674
+ }
675
+ 12% {
676
+ opacity: 1;
677
+ transform: rotate(22deg) translate(0px, calc(var(--art-plasma-ball-size) * -35 / 350));
678
+ filter: brightness(1.75);
679
+ }
680
+ 25% {
681
+ opacity: 0;
682
+ transform: rotate(45deg) translate(calc(var(--art-plasma-ball-size) * -33 / 350), calc(var(--art-plasma-ball-size) * -69 / 350));
683
+ }
684
+ 37% {
685
+ opacity: 1;
686
+ transform: rotate(67deg) translate(calc(var(--art-plasma-ball-size) * -64 / 350), calc(var(--art-plasma-ball-size) * -86 / 350));
687
+ filter: brightness(1.15);
688
+ }
689
+ 50% {
690
+ opacity: 0;
691
+ transform: rotate(90deg) translate(calc(var(--art-plasma-ball-size) * -108 / 350), calc(var(--art-plasma-ball-size) * -93 / 350));
692
+ }
693
+ 62% {
694
+ opacity: 1;
695
+ transform: rotate(112deg) translate(calc(var(--art-plasma-ball-size) * -140 / 350), calc(var(--art-plasma-ball-size) * -90 / 350));
696
+ filter: brightness(1.25);
697
+ }
698
+ 75% {
699
+ opacity: 0;
700
+ transform: rotate(135deg) translate(calc(var(--art-plasma-ball-size) * -169 / 350), calc(var(--art-plasma-ball-size) * -69 / 350));
701
+ }
702
+ 87% {
703
+ opacity: 1;
704
+ transform: rotate(157deg) translate(calc(var(--art-plasma-ball-size) * -185 / 350), calc(var(--art-plasma-ball-size) * -36 / 350));
705
+ filter: brightness(1.75);
706
+ }
707
+ 100% {
708
+ opacity: 0;
709
+ transform: rotate(180deg) translate(calc(var(--art-plasma-ball-size) * -192 / 350), calc(var(--art-plasma-ball-size) * 6 / 350));
710
+ }
711
+ }
712
+ }
713
+ `;
714
+
715
+ // src/el-dm-art-plasma-ball.ts
716
+ var layerMatch = plasma_ball_default.match(/@layer\s+css-art\s*\{([\s\S]*)\}\s*$/);
717
+ var coreCss = layerMatch ? layerMatch[1] : plasma_ball_default;
718
+ var styles = import_el_base.css`
719
+ :host {
720
+ display: inline-block;
721
+ }
722
+ :host([hidden]) {
723
+ display: none !important;
724
+ }
725
+ ${coreCss}
726
+ `;
727
+ var rays = () => `
728
+ <div class="rays">
729
+ <div class="ray"><span></span><span></span><span></span></div>
730
+ <div class="ray"><span></span><span></span><span></span></div>
731
+ <div class="ray"><span></span><span></span><span></span></div>
732
+ <div class="ray bigwave"><span></span><span></span><span></span></div>
733
+ <div class="ray"><span></span><span></span><span></span></div>
734
+ </div>
735
+ `;
736
+
737
+ class ElDmArtPlasmaBall extends import_el_base.BaseElement {
738
+ static properties = {
739
+ size: { type: String, reflect: true }
740
+ };
741
+ constructor() {
742
+ super();
743
+ this.attachStyles(styles);
744
+ }
745
+ render() {
746
+ const classes = ["art-plasma-ball"];
747
+ if (this.size && this.size !== "md")
748
+ classes.push(`art-plasma-ball-${this.size}`);
749
+ return `
750
+ <div class="${classes.join(" ")}">
751
+ <input type="checkbox" class="switcher" aria-label="Toggle plasma ball">
752
+ <div class="glassball">
753
+ <div class="electrode hide-electrode"></div>
754
+ <div class="electrode"></div>
755
+ ${rays()}
756
+ ${rays()}
757
+ ${rays()}
758
+ ${rays()}
759
+ ${rays()}
760
+ ${rays()}
761
+ </div>
762
+ <div class="base">
763
+ <div></div>
764
+ <div></div>
765
+ <span></span>
766
+ </div>
767
+ <div class="switch"></div>
768
+ </div>
769
+ `;
770
+ }
771
+ }
772
+
773
+ // src/index.ts
774
+ function register() {
775
+ if (!customElements.get("el-dm-art-plasma-ball")) {
776
+ customElements.define("el-dm-art-plasma-ball", ElDmArtPlasmaBall);
777
+ }
778
+ }
779
+
780
+ //# debugId=A4B66EF53250480264756E2164756E21
781
+ //# sourceMappingURL=index.js.map