@qtalo/qt-ui-library 0.4.0 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qtalo/qt-ui-library",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -631,6 +631,36 @@ body {
631
631
  animation: tourFadeInUp 0.25s ease-out forwards;
632
632
  }
633
633
 
634
+ /* Crossfade between two skeletons in the same place: a generic one fades out
635
+ while the specific one fades in, so the swap does not jump. */
636
+
637
+ @keyframes skeletonCrossfadeIn {
638
+ from {
639
+ opacity: 0;
640
+ }
641
+ to {
642
+ opacity: 1;
643
+ }
644
+ }
645
+
646
+ @keyframes skeletonCrossfadeOut {
647
+ from {
648
+ opacity: 1;
649
+ }
650
+ to {
651
+ opacity: 0;
652
+ }
653
+ }
654
+
655
+ .skeleton-crossfade-in {
656
+ animation: skeletonCrossfadeIn 0.4s ease-in-out;
657
+ }
658
+
659
+ .skeleton-crossfade-out {
660
+ pointer-events: none;
661
+ animation: skeletonCrossfadeOut 0.4s ease-in-out forwards;
662
+ }
663
+
634
664
  /* Skeleton block */
635
665
 
636
666
  .skeleton {
@@ -661,6 +691,15 @@ body {
661
691
  animation: none;
662
692
  background-image: none;
663
693
  }
694
+
695
+ .skeleton-crossfade-in {
696
+ animation: none;
697
+ }
698
+
699
+ .skeleton-crossfade-out {
700
+ animation: none;
701
+ opacity: 0;
702
+ }
664
703
  }
665
704
 
666
705
  /* Normalized content */