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