@jsb188/css 1.0.4 → 1.1.2

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,734 @@
1
+ /* Dropdown from top */
2
+
3
+ .anim_dropdown_top .target:not(.anim_inner),
4
+ .anim_dropdown_top.target {
5
+ transition-property: transform, opacity;
6
+ transition-timing-function: ease-out;
7
+ transition-duration: 125ms;
8
+ transform-origin: top right;
9
+ /* Scale transformation is a little less if from top without left-right direction */
10
+ transform: translate(0, -10px) scale(0.97);
11
+ opacity: 0;
12
+ }
13
+
14
+ .anim_dropdown_top.visible .target:not(.anim_inner),
15
+ .anim_dropdown_top.visible.target {
16
+ transform: translate(0, 0) scale(1);
17
+ opacity: 1;
18
+ }
19
+
20
+ .anim_dropdown_top.on_mount,
21
+ .anim_dropdown_top.reverse {
22
+ animation-name: keyframes_dropdown_top;
23
+ animation-duration: 125ms;
24
+ animation-timing-function: ease-out;
25
+ animation-fill-mode: both;
26
+ }
27
+
28
+ /* Restart the animation on dismissal even after the entrance has finished. */
29
+ .anim_dropdown_top.reverse {
30
+ animation-name: keyframes_dropdown_top_exit;
31
+ animation-direction: normal;
32
+ }
33
+
34
+ @keyframes keyframes_dropdown_top_exit {
35
+ from {
36
+ transform: translate(0, 0) scale(1);
37
+ opacity: 1;
38
+ }
39
+ to {
40
+ transform: translate(0, -10px) scale(0.97);
41
+ opacity: 0;
42
+ }
43
+ }
44
+
45
+ @keyframes keyframes_dropdown_top {
46
+ from {
47
+ transform: translate(0, -10px) scale(0.97);
48
+ opacity: 0;
49
+ }
50
+ to {
51
+ transform: translate(0, 0) scale(1);
52
+ opacity: 1;
53
+ }
54
+ }
55
+
56
+ /* Dropdown from top left corner */
57
+
58
+ .anim_dropdown_top_left .target:not(.anim_inner),
59
+ .anim_dropdown_top_left.target {
60
+ transition-property: transform, opacity;
61
+ transition-timing-function: ease-out;
62
+ transition-duration: 125ms;
63
+ transform-origin: top left;
64
+ transform: translate(-2px, -10px) scale(0.95);
65
+ opacity: 0;
66
+ }
67
+
68
+ .anim_dropdown_top_left.visible .target:not(.anim_inner),
69
+ .anim_dropdown_top_left.visible.target {
70
+ transform: translate(0, 0) scale(1);
71
+ opacity: 1;
72
+ }
73
+
74
+ .anim_dropdown_top_left.on_mount,
75
+ .anim_dropdown_top_left.reverse {
76
+ animation-name: keyframes_dropdown_top_left;
77
+ animation-duration: 125ms;
78
+ animation-timing-function: ease-out;
79
+ animation-fill-mode: both;
80
+ }
81
+
82
+ /* Restart the animation on dismissal even after the entrance has finished. */
83
+ .anim_dropdown_top_left.reverse {
84
+ animation-name: keyframes_dropdown_top_left_exit;
85
+ animation-direction: normal;
86
+ }
87
+
88
+ @keyframes keyframes_dropdown_top_left_exit {
89
+ from {
90
+ transform: translate(0, 0) scale(1);
91
+ opacity: 1;
92
+ }
93
+ to {
94
+ transform: translate(-2px, -10px) scale(0.95);
95
+ opacity: 0;
96
+ }
97
+ }
98
+
99
+ @keyframes keyframes_dropdown_top_left {
100
+ from {
101
+ transform: translate(-2px, -10px) scale(0.95);
102
+ opacity: 0;
103
+ }
104
+ to {
105
+ transform: translate(0, 0) scale(1);
106
+ opacity: 1;
107
+ }
108
+ }
109
+
110
+ /* Dropdown from top right corner */
111
+
112
+ .anim_dropdown_top_right .target:not(.anim_inner),
113
+ .anim_dropdown_top_right.target {
114
+ transition-property: transform, opacity;
115
+ transition-timing-function: ease-out;
116
+ transition-duration: 100ms;
117
+ transform-origin: top right;
118
+ transform: translate(2px, -10px) scale(0.95);
119
+ opacity: 0;
120
+ }
121
+
122
+ .anim_dropdown_top_right.visible .target:not(.anim_inner),
123
+ .anim_dropdown_top_right.visible.target {
124
+ transform: translate(0, 0) scale(1);
125
+ opacity: 1;
126
+ }
127
+
128
+ .anim_dropdown_top_right.on_mount,
129
+ .anim_dropdown_top_right.reverse {
130
+ animation-name: keyframes_dropdown_top_right;
131
+ animation-duration: 100ms;
132
+ animation-timing-function: ease-out;
133
+ animation-fill-mode: both;
134
+ }
135
+
136
+ /* Use a distinct animation name so dismissing restarts a completed entrance animation. */
137
+ .anim_dropdown_top_right.reverse {
138
+ animation-name: keyframes_dropdown_top_right_exit;
139
+ animation-direction: normal;
140
+ }
141
+
142
+ @keyframes keyframes_dropdown_top_right_exit {
143
+ from {
144
+ transform: translate(0, 0) scale(1);
145
+ opacity: 1;
146
+ }
147
+ to {
148
+ transform: translate(2px, -10px) scale(0.95);
149
+ opacity: 0;
150
+ }
151
+ }
152
+
153
+ @keyframes keyframes_dropdown_top_right {
154
+ from {
155
+ transform: translate(2px, -10px) scale(0.95);
156
+ opacity: 0;
157
+ }
158
+ to {
159
+ transform: translate(0, 0) scale(1);
160
+ opacity: 1;
161
+ }
162
+ }
163
+
164
+ /* Dropdown from bottom left corner */
165
+
166
+ .anim_dropdown_bottom_left .target:not(.anim_inner),
167
+ .anim_dropdown_bottom_left.target {
168
+ transition-property: transform, opacity;
169
+ transition-timing-function: ease-out;
170
+ transition-duration: 125ms;
171
+ transform-origin: bottom left;
172
+ transform: translate(-2px, -10px) scale(0.95);
173
+ opacity: 0;
174
+ }
175
+
176
+ .anim_dropdown_bottom_left.visible .target:not(.anim_inner),
177
+ .anim_dropdown_bottom_left.visible.target {
178
+ transform: translate(0, 0) scale(1);
179
+ opacity: 1;
180
+ }
181
+
182
+ .anim_dropdown_bottom_left.on_mount,
183
+ .anim_dropdown_bottom_left.reverse {
184
+ animation-name: keyframes_dropdown_bottom_left;
185
+ animation-duration: 125ms;
186
+ animation-timing-function: ease-out;
187
+ animation-fill-mode: both;
188
+ }
189
+
190
+ @keyframes keyframes_dropdown_bottom_left {
191
+ from {
192
+ transform: translate(-2px, -10px) scale(0.95);
193
+ opacity: 0;
194
+ }
195
+ to {
196
+ transform: translate(0, 0) scale(1);
197
+ opacity: 1;
198
+ }
199
+ }
200
+
201
+ /* Very simple opacity-appear */
202
+
203
+ .anim_appear .target:not(.anim_inner),
204
+ .anim_appear.target {
205
+ transition-property: transform, opacity;
206
+ transition-timing-function: ease-out;
207
+ transition-duration: 200ms;
208
+ opacity: 0;
209
+ }
210
+
211
+ .anim_appear.visible .target:not(.anim_inner),
212
+ .anim_appear.visible.target {
213
+ opacity: 1;
214
+ }
215
+
216
+ .anim_appear.on_mount,
217
+ .anim_appear.reverse {
218
+ animation-name: keyframes_anim_appear;
219
+ animation-duration: 200ms;
220
+ animation-timing-function: ease-out;
221
+ animation-fill-mode: both;
222
+ }
223
+
224
+ @keyframes keyframes_anim_appear {
225
+ from {
226
+ opacity: 0;
227
+ }
228
+ to {
229
+ opacity: 1;
230
+ }
231
+ }
232
+
233
+ /* Shift-up without fade */
234
+
235
+ .anim_move_up_center .target:not(.anim_inner),
236
+ .anim_move_up_center.target {
237
+ transition-property: transform;
238
+ transition-timing-function: linear;
239
+ transition-duration: 200ms;
240
+ transform: translateY(100%);
241
+ }
242
+
243
+ .anim_move_up_center.visible .target:not(.anim_inner),
244
+ .anim_move_up_center.visible.target {
245
+ transform: translateY(0);
246
+ }
247
+
248
+ .anim_move_up_center.on_mount,
249
+ .anim_move_up_center.reverse {
250
+ animation-name: anim_move_up_center;
251
+ animation-duration: 200ms;
252
+ animation-timing-function: linear;
253
+ animation-fill-mode: both;
254
+ }
255
+
256
+ @keyframes anim_move_up_center {
257
+ from {
258
+ transform: translateY(100%);
259
+ }
260
+ to {
261
+ transform: translateY(0);
262
+ }
263
+ }
264
+
265
+ /* Shift up slightly without fade */
266
+
267
+ .anim_shift_up_center .target:not(.anim_inner),
268
+ .anim_shift_up_center.target {
269
+ transition-property: transform;
270
+ transition-timing-function: linear;
271
+ transition-duration: 200ms;
272
+ transform: translateY(15%);
273
+ }
274
+
275
+ .anim_shift_up_center.visible .target:not(.anim_inner),
276
+ .anim_shift_up_center.visible.target {
277
+ transform: translateY(0);
278
+ }
279
+
280
+ .anim_shift_up_center.on_mount,
281
+ .anim_shift_up_center.reverse {
282
+ animation-name: keyframes_shift_up_center;
283
+ animation-duration: 200ms;
284
+ animation-timing-function: linear;
285
+ animation-fill-mode: both;
286
+ }
287
+
288
+ @keyframes keyframes_shift_up_center {
289
+ from {
290
+ transform: translateY(15%);
291
+ }
292
+ to {
293
+ transform: translateY(0);
294
+ }
295
+ }
296
+
297
+ /* Fade up from a slightly lowered position */
298
+
299
+ .anim_fade_up_center .target:not(.anim_inner),
300
+ .anim_fade_up_center.target {
301
+ transition-property: transform, opacity;
302
+ transition-timing-function: linear;
303
+ transition-duration: 200ms;
304
+ transform: translateY(35px);
305
+ opacity: 0;
306
+ }
307
+
308
+ .anim_fade_up_center.visible .target:not(.anim_inner),
309
+ .anim_fade_up_center.visible.target {
310
+ transform: translateY(0);
311
+ opacity: 1;
312
+ }
313
+
314
+ .anim_fade_up_center.on_mount,
315
+ .anim_fade_up_center.reverse {
316
+ animation-name: keyframes_fade_up_center;
317
+ animation-duration: 200ms;
318
+ animation-timing-function: linear;
319
+ animation-fill-mode: both;
320
+ }
321
+
322
+ @keyframes keyframes_fade_up_center {
323
+ from {
324
+ transform: translateY(35px);
325
+ opacity: 0;
326
+ }
327
+ to {
328
+ transform: translateY(0);
329
+ opacity: 1;
330
+ }
331
+ }
332
+
333
+ /* Lift up & expand (scale transform) from sunken position */
334
+
335
+ .anim_lift_scale_center .target:not(.anim_inner),
336
+ .anim_lift_scale_center.target {
337
+ transition-property: transform, opacity;
338
+ transition-timing-function: ease-out;
339
+ transition-duration: 250ms;
340
+ transform: translateY(100%) scale(0.85);
341
+ opacity: 0;
342
+ }
343
+
344
+ .anim_lift_scale_center.visible .target:not(.anim_inner),
345
+ .anim_lift_scale_center.visible.target {
346
+ transform: translateY(0) scale(1);
347
+ opacity: 1;
348
+ }
349
+
350
+ .anim_lift_scale_center.on_mount,
351
+ .anim_lift_scale_center.reverse {
352
+ animation-name: keyframes_lift_scale_center;
353
+ animation-duration: 250ms;
354
+ animation-timing-function: ease-out;
355
+ animation-fill-mode: both;
356
+ }
357
+
358
+ @keyframes keyframes_lift_scale_center {
359
+ from {
360
+ transform: translateY(100%) scale(0.9);
361
+ opacity: 0;
362
+ }
363
+ to {
364
+ transform: translateY(0) scale(1);
365
+ opacity: 1;
366
+ }
367
+ }
368
+
369
+ /* Drop down & expand (scale transform) from elevated position (no fade) */
370
+
371
+ .anim_drop_center .target:not(.anim_inner),
372
+ .anim_drop_center.target {
373
+ transition-property: transform;
374
+ transition-timing-function: ease-out;
375
+ transition-duration: 250ms;
376
+ transform: translateY(-125%) scale(0.9);
377
+ }
378
+
379
+ .anim_drop_center.visible .target:not(.anim_inner),
380
+ .anim_drop_center.visible.target {
381
+ transform: translateY(0) scale(1);
382
+ }
383
+
384
+ /* Simple slide down effect without any opacity */
385
+
386
+ .anim_slide_down .target:not(.anim_inner),
387
+ .anim_slide_down.target {
388
+ transition-property: transform, opacity;
389
+ transition-timing-function: ease-in-out;
390
+ transition-duration: 150ms;
391
+ transform: translateY(-125%);
392
+ }
393
+
394
+ .anim_slide_down.visible .target:not(.anim_inner),
395
+ .anim_slide_down.visible.target {
396
+ transform: translateY(0);
397
+ }
398
+
399
+ .anim_slide_down .target:not(.anim_inner),
400
+ .anim_slide_down.target {
401
+ transform: translateY(125%);
402
+ }
403
+
404
+ .anim_slide_down.visible .target:not(.anim_inner),
405
+ .anim_slide_down.visible.target {
406
+ transform: translateY(0);
407
+ }
408
+
409
+ .anim_slide_down.on_mount,
410
+ .anim_slide_down.reverse {
411
+ animation-name: keyframes_slide_down;
412
+ animation-duration: 125ms;
413
+ animation-timing-function: ease-out;
414
+ animation-fill-mode: both;
415
+ }
416
+
417
+ @keyframes keyframes_slide_down {
418
+ from {
419
+ transform: translateY(-125%);
420
+ }
421
+ to {
422
+ transform: translateY(0);
423
+ }
424
+ }
425
+
426
+ /* Zoom & fade in with a slight scale effect */
427
+
428
+ .anim_zoom_in_fade .target:not(.anim_inner),
429
+ .anim_zoom_in_fade.target,
430
+ .anim_zoom_in .target:not(.anim_inner),
431
+ .anim_zoom_in.target {
432
+ transition-property: transform, opacity;
433
+ transition-timing-function: ease-in-out;
434
+ transition-duration: 150ms;
435
+ transform: scale3d(0.95, 0.95, 0.95);
436
+ }
437
+
438
+ .anim_zoom_in_fade.visible .target:not(.anim_inner),
439
+ .anim_zoom_in_fade.visible.target,
440
+ .anim_zoom_in.visible .target:not(.anim_inner),
441
+ .anim_zoom_in.visible.target {
442
+ transform: scale3d(1, 1, 1);
443
+ }
444
+
445
+ .anim_zoom_in_fade .target:not(.anim_inner),
446
+ .anim_zoom_in_fade.target {
447
+ opacity: 0;
448
+ }
449
+
450
+ .anim_zoom_in_fade.visible .target:not(.anim_inner),
451
+ .anim_zoom_in_fade.visible.target {
452
+ opacity: 1;
453
+ }
454
+
455
+ .anim_zoom_in_fade.on_mount,
456
+ .anim_zoom_in_fade.reverse {
457
+ animation-name: keyframes_zoom_in_fade;
458
+ animation-duration: 125ms;
459
+ animation-timing-function: ease-out;
460
+ animation-fill-mode: both;
461
+ }
462
+
463
+ @keyframes keyframes_zoom_in_fade {
464
+ from {
465
+ transform: scale3d(0.97, 0.97, 0.97);
466
+ opacity: 0;
467
+ }
468
+ to {
469
+ transform: scale3d(1, 1, 1);
470
+ opacity: 1;
471
+ }
472
+ }
473
+
474
+ @keyframes keyframes_zoom_in {
475
+ from {
476
+ transform: scale3d(0.97, 0.97, 0.97);
477
+ }
478
+ to {
479
+ transform: scale3d(1, 1, 1);
480
+ }
481
+ }
482
+
483
+ .anim_zoom_in.on_mount,
484
+ .anim_zoom_in.reverse {
485
+ animation-name: keyframes_zoom_in;
486
+ animation-duration: 125ms;
487
+ animation-timing-function: ease-out;
488
+ animation-fill-mode: both;
489
+ }
490
+
491
+ /* Slide in from right */
492
+
493
+ .anim_slide_from_right .target:not(.anim_inner),
494
+ .anim_slide_from_right.target {
495
+ transition-property: transform;
496
+ transition-timing-function: ease-in-out;
497
+ transition-duration: 150ms;
498
+ transform: translate(100%);
499
+ }
500
+
501
+ .anim_slide_from_right.visible .target:not(.anim_inner),
502
+ .anim_slide_from_right.visible.target {
503
+ transform: translate(0%);
504
+ }
505
+
506
+ @keyframes keyframes_slide_from_right {
507
+ from {
508
+ transform: translate(100%);
509
+ }
510
+ to {
511
+ transform: translate(0%);
512
+ }
513
+ }
514
+
515
+ .anim_slide_from_right.on_mount,
516
+ .anim_slide_from_right.reverse {
517
+ animation-name: keyframes_slide_from_right;
518
+ animation-duration: 125ms;
519
+ animation-timing-function: ease-out;
520
+ animation-fill-mode: both;
521
+ }
522
+
523
+ /* Replace the main app sidebar with one route-owned sidebar */
524
+
525
+ .anim_fade_out_slight_left {
526
+ transition-property: transform, opacity;
527
+ transition-timing-function: ease-out;
528
+ transition-duration: 200ms;
529
+ transform: translateX(-10px);
530
+ opacity: 0;
531
+ }
532
+
533
+ .anim_fade_out_slight_left.visible {
534
+ transform: translateX(0);
535
+ opacity: 1;
536
+ }
537
+
538
+ .anim_sidebar_route {
539
+ transition-property: transform;
540
+ transition-timing-function: ease-out;
541
+ transition-duration: 200ms;
542
+ transform: translateX(100%);
543
+ }
544
+
545
+ .anim_sidebar_route.visible {
546
+ transform: translateX(0);
547
+ }
548
+
549
+ /* Drop & fade down from slightly elevated position */
550
+
551
+ .anim_drop_down .target:not(.anim_inner),
552
+ .anim_drop_down.target {
553
+ transition-property: transform, opacity;
554
+ transition-timing-function: ease-out;
555
+ transition-duration: 75ms;
556
+
557
+ transform: translateY(-15px);
558
+ opacity: 0;
559
+ }
560
+
561
+ .anim_drop_down.visible .target:not(.anim_inner),
562
+ .anim_drop_down.visible.target {
563
+ transform: translateY(0);
564
+ opacity: 1;
565
+ }
566
+
567
+ /* Animation utility config classes */
568
+
569
+ /* Fade data after a short loading grace period. */
570
+ .anim_data_loading {
571
+ animation-name: keyframes_data_loading;
572
+ animation-duration: 0.01s;
573
+ animation-delay: 0.75s;
574
+ animation-fill-mode: both;
575
+ }
576
+
577
+ .anim_data_loading.delay_1 {
578
+ animation-delay: 0s;
579
+ }
580
+ .anim_data_loading.delay_2 {
581
+ animation-delay: 0.5s;
582
+ }
583
+ .anim_data_loading.delay_3 {
584
+ animation-delay: 1.5s;
585
+ }
586
+ .anim_data_loading.delay_4 {
587
+ animation-delay: 3s;
588
+ }
589
+
590
+ @keyframes keyframes_data_loading {
591
+ from {
592
+ opacity: 1;
593
+ }
594
+ to {
595
+ opacity: 0.5;
596
+ }
597
+ }
598
+
599
+ .anim_bounce_float {
600
+ animation-name: keyframes_bounce_float;
601
+ animation-duration: 750ms;
602
+ animation-timing-function: ease-in-out;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .anim_bounce_float.spd_0 {
607
+ transition-duration: 250ms !important;
608
+ animation-duration: 250ms !important;
609
+ }
610
+ .anim_bounce_float.spd_1 {
611
+ transition-duration: 5000ms !important;
612
+ animation-duration: 500ms !important;
613
+ }
614
+ .anim_bounce_float.spd_2 {
615
+ transition-duration: 1000ms !important;
616
+ animation-duration: 1000ms !important;
617
+ }
618
+ .anim_bounce_float.spd_3 {
619
+ transition-duration: 2000ms !important;
620
+ animation-duration: 2000ms !important;
621
+ }
622
+ .anim_bounce_float.spd_4 {
623
+ transition-duration: 3000ms !important;
624
+ animation-duration: 3000ms !important;
625
+ }
626
+ .anim_bounce_float.spd_5 {
627
+ transition-duration: 4000ms !important;
628
+ animation-duration: 4000ms !important;
629
+ }
630
+
631
+ @keyframes keyframes_bounce_float {
632
+ 0%,
633
+ 100% {
634
+ transform: translateY(-1px);
635
+ }
636
+ 50% {
637
+ transform: translateY(0.5px);
638
+ }
639
+ }
640
+
641
+ .anim_bounce_light {
642
+ animation-name: keyframes_bounce_light;
643
+ animation-duration: 750ms;
644
+ animation-timing-function: ease-in-out;
645
+ animation-iteration-count: infinite;
646
+ }
647
+
648
+ .anim_bounce_light.spd_0 {
649
+ transition-duration: 250ms !important;
650
+ animation-duration: 250ms !important;
651
+ }
652
+ .anim_bounce_light.spd_1 {
653
+ transition-duration: 5000ms !important;
654
+ animation-duration: 500ms !important;
655
+ }
656
+ .anim_bounce_light.spd_2 {
657
+ transition-duration: 1000ms !important;
658
+ animation-duration: 1000ms !important;
659
+ }
660
+ .anim_bounce_light.spd_3 {
661
+ transition-duration: 2000ms !important;
662
+ animation-duration: 2000ms !important;
663
+ }
664
+ .anim_bounce_light.spd_4 {
665
+ transition-duration: 3000ms !important;
666
+ animation-duration: 3000ms !important;
667
+ }
668
+ .anim_bounce_light.spd_5 {
669
+ transition-duration: 4000ms !important;
670
+ animation-duration: 4000ms !important;
671
+ }
672
+
673
+ @keyframes keyframes_bounce_light {
674
+ 0%,
675
+ 100% {
676
+ transform: translateY(-1px);
677
+ }
678
+ 50% {
679
+ transform: translateY(2px);
680
+ }
681
+ }
682
+
683
+ .anim_move_left_right {
684
+ animation-name: keyframes_move_left_right;
685
+ animation-duration: 1200ms;
686
+ animation-timing-function: ease-in-out;
687
+ animation-iteration-count: infinite;
688
+ }
689
+
690
+ @keyframes keyframes_move_left_right {
691
+ 0%,
692
+ 100% {
693
+ transform: translateX(0);
694
+ }
695
+ 50% {
696
+ transform: translateX(50px);
697
+ }
698
+ }
699
+
700
+ /* Background size movement */
701
+
702
+ .anim_bg_move_1 {
703
+ animation: keyframes_bg_move_1 20s ease-in-out infinite;
704
+ }
705
+
706
+ @keyframes keyframes_bg_move_1 {
707
+ 0%,
708
+ 100% {
709
+ background-size: 200% 200%;
710
+ }
711
+
712
+ 50% {
713
+ background-size: 100% 100%;
714
+ }
715
+ }
716
+
717
+ .anim_bg_move_2 {
718
+ animation: keyframes_bg_move_2 10s ease-in-out infinite;
719
+ }
720
+
721
+ @keyframes keyframes_bg_move_2 {
722
+ 0%,
723
+ 100% {
724
+ background-size: 150% 150%;
725
+ }
726
+
727
+ 50% {
728
+ background-size: 100% 100%;
729
+ }
730
+ }
731
+
732
+ .reverse {
733
+ animation-direction: reverse;
734
+ }