react-awesome-reveal 4.1.0 → 4.2.1
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/README.md +1 -1
- package/dist/index.d.ts +17 -22
- package/dist/index.js +312 -298
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +177 -166
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -8
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(src_exports);
|
|
37
37
|
|
|
38
38
|
// src/components/AttentionSeeker.tsx
|
|
39
|
-
var
|
|
39
|
+
var import_react30 = require("react");
|
|
40
40
|
|
|
41
41
|
// src/animations/attention_seekers/bounce.ts
|
|
42
42
|
var import_react = require("@emotion/react");
|
|
@@ -584,10 +584,14 @@ function getAnimationCss({
|
|
|
584
584
|
animation-direction: normal;
|
|
585
585
|
animation-fill-mode: both;
|
|
586
586
|
animation-iteration-count: ${iterationCount};
|
|
587
|
+
|
|
588
|
+
@media (prefers-reduced-motion: reduce) {
|
|
589
|
+
animation: none;
|
|
590
|
+
}
|
|
587
591
|
`;
|
|
588
592
|
}
|
|
589
593
|
|
|
590
|
-
// src/utils/
|
|
594
|
+
// src/utils/guards.ts
|
|
591
595
|
function isNullable(a) {
|
|
592
596
|
return a == void 0;
|
|
593
597
|
}
|
|
@@ -595,15 +599,22 @@ function isStringLike(value) {
|
|
|
595
599
|
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
596
600
|
}
|
|
597
601
|
|
|
602
|
+
// src/utils/patterns.ts
|
|
603
|
+
function matchIf(onTrue, onFalse) {
|
|
604
|
+
return (condition) => condition ? onTrue() : onFalse();
|
|
605
|
+
}
|
|
606
|
+
function matchIfOrNull(onTrue) {
|
|
607
|
+
return matchIf(onTrue, () => null);
|
|
608
|
+
}
|
|
609
|
+
|
|
598
610
|
// src/Reveal.tsx
|
|
599
611
|
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
`;
|
|
612
|
+
function hideWhen(condition) {
|
|
613
|
+
return matchIf(
|
|
614
|
+
() => ({ opacity: 0 }),
|
|
615
|
+
() => ({ opacity: 1 })
|
|
616
|
+
)(condition);
|
|
617
|
+
}
|
|
607
618
|
var Reveal = (props) => {
|
|
608
619
|
const {
|
|
609
620
|
cascade = false,
|
|
@@ -613,7 +624,6 @@ var Reveal = (props) => {
|
|
|
613
624
|
fraction = 0,
|
|
614
625
|
keyframes: keyframes87 = fadeInLeft,
|
|
615
626
|
triggerOnce = false,
|
|
616
|
-
css: revealCss,
|
|
617
627
|
className,
|
|
618
628
|
style,
|
|
619
629
|
childClassName,
|
|
@@ -628,83 +638,91 @@ var Reveal = (props) => {
|
|
|
628
638
|
}),
|
|
629
639
|
[duration, keyframes87]
|
|
630
640
|
);
|
|
631
|
-
if (isNullable(children))
|
|
641
|
+
if (isNullable(children))
|
|
632
642
|
return null;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
children: ({ cx }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(node.type, {
|
|
658
|
-
...node.props,
|
|
659
|
-
className: cx(className, node.props.className),
|
|
660
|
-
style: { ...style, ...node.props.style },
|
|
661
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Reveal, {
|
|
662
|
-
...props,
|
|
663
|
-
children: node.props.children
|
|
664
|
-
})
|
|
665
|
-
})
|
|
666
|
-
});
|
|
667
|
-
case "li":
|
|
668
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_intersection_observer.InView, {
|
|
643
|
+
if (isStringLike(children))
|
|
644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
645
|
+
if ((0, import_react_is.isFragment)(children))
|
|
646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FragmentReveal, { ...props, animationStyles });
|
|
647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: import_react29.Children.map(children, (node, index) => {
|
|
648
|
+
if (!(0, import_react29.isValidElement)(node))
|
|
649
|
+
return null;
|
|
650
|
+
const nodeDelay = delay + (cascade ? index * duration * damping : 0);
|
|
651
|
+
switch (node.type) {
|
|
652
|
+
case "ol":
|
|
653
|
+
case "ul":
|
|
654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react28.ClassNames, { children: ({ cx }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
655
|
+
node.type,
|
|
656
|
+
{
|
|
657
|
+
...node.props,
|
|
658
|
+
className: cx(className, node.props.className),
|
|
659
|
+
style: Object.assign({}, style, node.props.style),
|
|
660
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Reveal, { ...props, children: node.props.children })
|
|
661
|
+
}
|
|
662
|
+
) });
|
|
663
|
+
case "li":
|
|
664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
665
|
+
import_react_intersection_observer.InView,
|
|
666
|
+
{
|
|
669
667
|
threshold: fraction,
|
|
670
668
|
triggerOnce,
|
|
671
669
|
onChange: onVisibilityChange,
|
|
672
|
-
children: ({ inView, ref }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react28.ClassNames, {
|
|
673
|
-
|
|
670
|
+
children: ({ inView, ref }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react28.ClassNames, { children: ({ cx }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
671
|
+
node.type,
|
|
672
|
+
{
|
|
674
673
|
...node.props,
|
|
675
674
|
ref,
|
|
676
675
|
className: cx(childClassName, node.props.className),
|
|
677
|
-
css:
|
|
678
|
-
style:
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
676
|
+
css: matchIfOrNull(() => animationStyles)(inView),
|
|
677
|
+
style: Object.assign(
|
|
678
|
+
{},
|
|
679
|
+
childStyle,
|
|
680
|
+
node.props.style,
|
|
681
|
+
hideWhen(!inView),
|
|
682
|
+
{ animationDelay: nodeDelay + "ms" }
|
|
683
|
+
)
|
|
684
|
+
}
|
|
685
|
+
) })
|
|
686
|
+
}
|
|
687
|
+
);
|
|
688
|
+
default:
|
|
689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
690
|
+
import_react_intersection_observer.InView,
|
|
691
|
+
{
|
|
688
692
|
threshold: fraction,
|
|
689
693
|
triggerOnce,
|
|
690
694
|
onChange: onVisibilityChange,
|
|
691
|
-
children: ({ inView, ref }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
695
|
+
children: ({ inView, ref }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
696
|
+
"div",
|
|
697
|
+
{
|
|
698
|
+
ref,
|
|
699
|
+
className,
|
|
700
|
+
css: matchIfOrNull(() => animationStyles)(inView),
|
|
701
|
+
style: Object.assign({}, style, {
|
|
702
|
+
animationDelay: nodeDelay + "ms"
|
|
703
|
+
}),
|
|
704
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react28.ClassNames, { children: ({ cx }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
705
|
+
node.type,
|
|
706
|
+
{
|
|
707
|
+
...node.props,
|
|
708
|
+
className: cx(childClassName, node.props.className),
|
|
709
|
+
style: Object.assign(
|
|
710
|
+
{},
|
|
711
|
+
childStyle,
|
|
712
|
+
node.props.style
|
|
713
|
+
)
|
|
714
|
+
}
|
|
715
|
+
) })
|
|
716
|
+
}
|
|
717
|
+
)
|
|
718
|
+
}
|
|
719
|
+
);
|
|
720
|
+
}
|
|
721
|
+
}) });
|
|
722
|
+
};
|
|
723
|
+
var textBaseStyles = {
|
|
724
|
+
display: "inline-block",
|
|
725
|
+
whiteSpace: "pre"
|
|
708
726
|
};
|
|
709
727
|
var TextReveal = (props) => {
|
|
710
728
|
const {
|
|
@@ -715,7 +733,6 @@ var TextReveal = (props) => {
|
|
|
715
733
|
duration = 1e3,
|
|
716
734
|
fraction = 0,
|
|
717
735
|
triggerOnce = false,
|
|
718
|
-
css: revealCss,
|
|
719
736
|
className,
|
|
720
737
|
style,
|
|
721
738
|
children,
|
|
@@ -726,29 +743,34 @@ var TextReveal = (props) => {
|
|
|
726
743
|
threshold: fraction,
|
|
727
744
|
onChange: onVisibilityChange
|
|
728
745
|
});
|
|
729
|
-
return
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
746
|
+
return matchIf(
|
|
747
|
+
() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
748
|
+
"div",
|
|
749
|
+
{
|
|
750
|
+
ref,
|
|
751
|
+
className,
|
|
752
|
+
style: Object.assign({}, style, textBaseStyles),
|
|
753
|
+
children: children.split("").map((char, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
754
|
+
"span",
|
|
755
|
+
{
|
|
756
|
+
css: matchIfOrNull(() => animationStyles)(inView),
|
|
757
|
+
style: Object.assign({}, hideWhen(!inView), {
|
|
758
|
+
animationDelay: delay + index * duration * damping + "ms"
|
|
759
|
+
}),
|
|
760
|
+
children: char
|
|
761
|
+
},
|
|
762
|
+
index
|
|
763
|
+
))
|
|
764
|
+
}
|
|
765
|
+
),
|
|
766
|
+
() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FragmentReveal, { ...props, children })
|
|
767
|
+
)(cascade);
|
|
745
768
|
};
|
|
746
769
|
var FragmentReveal = (props) => {
|
|
747
770
|
const {
|
|
748
771
|
animationStyles,
|
|
749
772
|
fraction = 0,
|
|
750
773
|
triggerOnce = false,
|
|
751
|
-
css: revealCss,
|
|
752
774
|
className,
|
|
753
775
|
style,
|
|
754
776
|
children,
|
|
@@ -759,20 +781,24 @@ var FragmentReveal = (props) => {
|
|
|
759
781
|
threshold: fraction,
|
|
760
782
|
onChange: onVisibilityChange
|
|
761
783
|
});
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
785
|
+
"div",
|
|
786
|
+
{
|
|
787
|
+
ref,
|
|
788
|
+
className,
|
|
789
|
+
css: matchIfOrNull(() => animationStyles)(inView),
|
|
790
|
+
style: Object.assign({}, style, hideWhen(!inView)),
|
|
791
|
+
children
|
|
792
|
+
}
|
|
793
|
+
);
|
|
770
794
|
};
|
|
771
795
|
|
|
772
796
|
// src/components/AttentionSeeker.tsx
|
|
773
797
|
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
774
798
|
function getStyles(effect) {
|
|
775
799
|
switch (effect) {
|
|
800
|
+
case "bounce":
|
|
801
|
+
return [bounce, { transformOrigin: "center bottom" }];
|
|
776
802
|
case "flash":
|
|
777
803
|
return [flash];
|
|
778
804
|
case "headShake":
|
|
@@ -797,27 +823,27 @@ function getStyles(effect) {
|
|
|
797
823
|
return [tada];
|
|
798
824
|
case "wobble":
|
|
799
825
|
return [wobble];
|
|
800
|
-
case "bounce":
|
|
801
|
-
default:
|
|
802
|
-
return [bounce, { transformOrigin: "center bottom" }];
|
|
803
826
|
}
|
|
804
827
|
}
|
|
805
828
|
var AttentionSeeker = (props) => {
|
|
806
|
-
const { effect = "bounce", ...rest } = props;
|
|
807
|
-
const [keyframes87, animationCss3] = (0,
|
|
808
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
829
|
+
const { effect = "bounce", style, ...rest } = props;
|
|
830
|
+
const [keyframes87, animationCss3] = (0, import_react30.useMemo)(() => getStyles(effect), [effect]);
|
|
831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
832
|
+
Reveal,
|
|
833
|
+
{
|
|
834
|
+
keyframes: keyframes87,
|
|
835
|
+
style: Object.assign({}, style, animationCss3),
|
|
836
|
+
...rest
|
|
837
|
+
}
|
|
838
|
+
);
|
|
813
839
|
};
|
|
814
840
|
|
|
815
841
|
// src/components/Bounce.tsx
|
|
816
|
-
var
|
|
842
|
+
var import_react41 = require("react");
|
|
817
843
|
|
|
818
844
|
// src/animations/bouncing_entrances/bounceIn.ts
|
|
819
|
-
var
|
|
820
|
-
var bounceIn =
|
|
845
|
+
var import_react31 = require("@emotion/react");
|
|
846
|
+
var bounceIn = import_react31.keyframes`
|
|
821
847
|
from,
|
|
822
848
|
20%,
|
|
823
849
|
40%,
|
|
@@ -856,8 +882,8 @@ var bounceIn = import_react32.keyframes`
|
|
|
856
882
|
`;
|
|
857
883
|
|
|
858
884
|
// src/animations/bouncing_entrances/bounceInDown.ts
|
|
859
|
-
var
|
|
860
|
-
var bounceInDown =
|
|
885
|
+
var import_react32 = require("@emotion/react");
|
|
886
|
+
var bounceInDown = import_react32.keyframes`
|
|
861
887
|
from,
|
|
862
888
|
60%,
|
|
863
889
|
75%,
|
|
@@ -890,8 +916,8 @@ var bounceInDown = import_react33.keyframes`
|
|
|
890
916
|
`;
|
|
891
917
|
|
|
892
918
|
// src/animations/bouncing_entrances/bounceInLeft.ts
|
|
893
|
-
var
|
|
894
|
-
var bounceInLeft =
|
|
919
|
+
var import_react33 = require("@emotion/react");
|
|
920
|
+
var bounceInLeft = import_react33.keyframes`
|
|
895
921
|
from,
|
|
896
922
|
60%,
|
|
897
923
|
75%,
|
|
@@ -924,8 +950,8 @@ var bounceInLeft = import_react34.keyframes`
|
|
|
924
950
|
`;
|
|
925
951
|
|
|
926
952
|
// src/animations/bouncing_entrances/bounceInRight.ts
|
|
927
|
-
var
|
|
928
|
-
var bounceInRight =
|
|
953
|
+
var import_react34 = require("@emotion/react");
|
|
954
|
+
var bounceInRight = import_react34.keyframes`
|
|
929
955
|
from,
|
|
930
956
|
60%,
|
|
931
957
|
75%,
|
|
@@ -958,8 +984,8 @@ var bounceInRight = import_react35.keyframes`
|
|
|
958
984
|
`;
|
|
959
985
|
|
|
960
986
|
// src/animations/bouncing_entrances/bounceInUp.ts
|
|
961
|
-
var
|
|
962
|
-
var bounceInUp =
|
|
987
|
+
var import_react35 = require("@emotion/react");
|
|
988
|
+
var bounceInUp = import_react35.keyframes`
|
|
963
989
|
from,
|
|
964
990
|
60%,
|
|
965
991
|
75%,
|
|
@@ -992,8 +1018,8 @@ var bounceInUp = import_react36.keyframes`
|
|
|
992
1018
|
`;
|
|
993
1019
|
|
|
994
1020
|
// src/animations/bouncing_exits/bounceOut.ts
|
|
995
|
-
var
|
|
996
|
-
var bounceOut =
|
|
1021
|
+
var import_react36 = require("@emotion/react");
|
|
1022
|
+
var bounceOut = import_react36.keyframes`
|
|
997
1023
|
20% {
|
|
998
1024
|
transform: scale3d(0.9, 0.9, 0.9);
|
|
999
1025
|
}
|
|
@@ -1011,8 +1037,8 @@ var bounceOut = import_react37.keyframes`
|
|
|
1011
1037
|
`;
|
|
1012
1038
|
|
|
1013
1039
|
// src/animations/bouncing_exits/bounceOutDown.ts
|
|
1014
|
-
var
|
|
1015
|
-
var bounceOutDown =
|
|
1040
|
+
var import_react37 = require("@emotion/react");
|
|
1041
|
+
var bounceOutDown = import_react37.keyframes`
|
|
1016
1042
|
20% {
|
|
1017
1043
|
transform: translate3d(0, 10px, 0) scaleY(0.985);
|
|
1018
1044
|
}
|
|
@@ -1030,8 +1056,8 @@ var bounceOutDown = import_react38.keyframes`
|
|
|
1030
1056
|
`;
|
|
1031
1057
|
|
|
1032
1058
|
// src/animations/bouncing_exits/bounceOutLeft.ts
|
|
1033
|
-
var
|
|
1034
|
-
var bounceOutLeft =
|
|
1059
|
+
var import_react38 = require("@emotion/react");
|
|
1060
|
+
var bounceOutLeft = import_react38.keyframes`
|
|
1035
1061
|
20% {
|
|
1036
1062
|
opacity: 1;
|
|
1037
1063
|
transform: translate3d(20px, 0, 0) scaleX(0.9);
|
|
@@ -1044,8 +1070,8 @@ var bounceOutLeft = import_react39.keyframes`
|
|
|
1044
1070
|
`;
|
|
1045
1071
|
|
|
1046
1072
|
// src/animations/bouncing_exits/bounceOutRight.ts
|
|
1047
|
-
var
|
|
1048
|
-
var bounceOutRight =
|
|
1073
|
+
var import_react39 = require("@emotion/react");
|
|
1074
|
+
var bounceOutRight = import_react39.keyframes`
|
|
1049
1075
|
20% {
|
|
1050
1076
|
opacity: 1;
|
|
1051
1077
|
transform: translate3d(-20px, 0, 0) scaleX(0.9);
|
|
@@ -1058,8 +1084,8 @@ var bounceOutRight = import_react40.keyframes`
|
|
|
1058
1084
|
`;
|
|
1059
1085
|
|
|
1060
1086
|
// src/animations/bouncing_exits/bounceOutUp.ts
|
|
1061
|
-
var
|
|
1062
|
-
var bounceOutUp =
|
|
1087
|
+
var import_react40 = require("@emotion/react");
|
|
1088
|
+
var bounceOutUp = import_react40.keyframes`
|
|
1063
1089
|
20% {
|
|
1064
1090
|
transform: translate3d(0, -10px, 0) scaleY(0.985);
|
|
1065
1091
|
}
|
|
@@ -1094,22 +1120,19 @@ function getStyles2(reverse, direction) {
|
|
|
1094
1120
|
}
|
|
1095
1121
|
var Bounce = (props) => {
|
|
1096
1122
|
const { direction, reverse = false, ...rest } = props;
|
|
1097
|
-
const keyframes87 = (0,
|
|
1123
|
+
const keyframes87 = (0, import_react41.useMemo)(
|
|
1098
1124
|
() => getStyles2(reverse, direction),
|
|
1099
1125
|
[direction, reverse]
|
|
1100
1126
|
);
|
|
1101
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Reveal, {
|
|
1102
|
-
keyframes: keyframes87,
|
|
1103
|
-
...rest
|
|
1104
|
-
});
|
|
1127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Reveal, { keyframes: keyframes87, ...rest });
|
|
1105
1128
|
};
|
|
1106
1129
|
|
|
1107
1130
|
// src/components/Fade.tsx
|
|
1108
|
-
var
|
|
1131
|
+
var import_react55 = require("react");
|
|
1109
1132
|
|
|
1110
1133
|
// src/animations/fading_exits/fadeOut.ts
|
|
1111
|
-
var
|
|
1112
|
-
var fadeOut =
|
|
1134
|
+
var import_react42 = require("@emotion/react");
|
|
1135
|
+
var fadeOut = import_react42.keyframes`
|
|
1113
1136
|
from {
|
|
1114
1137
|
opacity: 1;
|
|
1115
1138
|
}
|
|
@@ -1120,8 +1143,8 @@ var fadeOut = import_react43.keyframes`
|
|
|
1120
1143
|
`;
|
|
1121
1144
|
|
|
1122
1145
|
// src/animations/fading_exits/fadeOutBottomLeft.ts
|
|
1123
|
-
var
|
|
1124
|
-
var fadeOutBottomLeft =
|
|
1146
|
+
var import_react43 = require("@emotion/react");
|
|
1147
|
+
var fadeOutBottomLeft = import_react43.keyframes`
|
|
1125
1148
|
from {
|
|
1126
1149
|
opacity: 1;
|
|
1127
1150
|
transform: translate3d(0, 0, 0);
|
|
@@ -1134,8 +1157,8 @@ var fadeOutBottomLeft = import_react44.keyframes`
|
|
|
1134
1157
|
`;
|
|
1135
1158
|
|
|
1136
1159
|
// src/animations/fading_exits/fadeOutBottomRight.ts
|
|
1137
|
-
var
|
|
1138
|
-
var fadeOutBottomRight =
|
|
1160
|
+
var import_react44 = require("@emotion/react");
|
|
1161
|
+
var fadeOutBottomRight = import_react44.keyframes`
|
|
1139
1162
|
from {
|
|
1140
1163
|
opacity: 1;
|
|
1141
1164
|
transform: translate3d(0, 0, 0);
|
|
@@ -1148,8 +1171,8 @@ var fadeOutBottomRight = import_react45.keyframes`
|
|
|
1148
1171
|
`;
|
|
1149
1172
|
|
|
1150
1173
|
// src/animations/fading_exits/fadeOutDown.ts
|
|
1151
|
-
var
|
|
1152
|
-
var fadeOutDown =
|
|
1174
|
+
var import_react45 = require("@emotion/react");
|
|
1175
|
+
var fadeOutDown = import_react45.keyframes`
|
|
1153
1176
|
from {
|
|
1154
1177
|
opacity: 1;
|
|
1155
1178
|
}
|
|
@@ -1161,8 +1184,8 @@ var fadeOutDown = import_react46.keyframes`
|
|
|
1161
1184
|
`;
|
|
1162
1185
|
|
|
1163
1186
|
// src/animations/fading_exits/fadeOutDownBig.ts
|
|
1164
|
-
var
|
|
1165
|
-
var fadeOutDownBig =
|
|
1187
|
+
var import_react46 = require("@emotion/react");
|
|
1188
|
+
var fadeOutDownBig = import_react46.keyframes`
|
|
1166
1189
|
from {
|
|
1167
1190
|
opacity: 1;
|
|
1168
1191
|
}
|
|
@@ -1174,8 +1197,8 @@ var fadeOutDownBig = import_react47.keyframes`
|
|
|
1174
1197
|
`;
|
|
1175
1198
|
|
|
1176
1199
|
// src/animations/fading_exits/fadeOutLeft.ts
|
|
1177
|
-
var
|
|
1178
|
-
var fadeOutLeft =
|
|
1200
|
+
var import_react47 = require("@emotion/react");
|
|
1201
|
+
var fadeOutLeft = import_react47.keyframes`
|
|
1179
1202
|
from {
|
|
1180
1203
|
opacity: 1;
|
|
1181
1204
|
}
|
|
@@ -1187,8 +1210,8 @@ var fadeOutLeft = import_react48.keyframes`
|
|
|
1187
1210
|
`;
|
|
1188
1211
|
|
|
1189
1212
|
// src/animations/fading_exits/fadeOutLeftBig.ts
|
|
1190
|
-
var
|
|
1191
|
-
var fadeOutLeftBig =
|
|
1213
|
+
var import_react48 = require("@emotion/react");
|
|
1214
|
+
var fadeOutLeftBig = import_react48.keyframes`
|
|
1192
1215
|
from {
|
|
1193
1216
|
opacity: 1;
|
|
1194
1217
|
}
|
|
@@ -1200,8 +1223,8 @@ var fadeOutLeftBig = import_react49.keyframes`
|
|
|
1200
1223
|
`;
|
|
1201
1224
|
|
|
1202
1225
|
// src/animations/fading_exits/fadeOutRight.ts
|
|
1203
|
-
var
|
|
1204
|
-
var fadeOutRight =
|
|
1226
|
+
var import_react49 = require("@emotion/react");
|
|
1227
|
+
var fadeOutRight = import_react49.keyframes`
|
|
1205
1228
|
from {
|
|
1206
1229
|
opacity: 1;
|
|
1207
1230
|
}
|
|
@@ -1213,8 +1236,8 @@ var fadeOutRight = import_react50.keyframes`
|
|
|
1213
1236
|
`;
|
|
1214
1237
|
|
|
1215
1238
|
// src/animations/fading_exits/fadeOutRightBig.ts
|
|
1216
|
-
var
|
|
1217
|
-
var fadeOutRightBig =
|
|
1239
|
+
var import_react50 = require("@emotion/react");
|
|
1240
|
+
var fadeOutRightBig = import_react50.keyframes`
|
|
1218
1241
|
from {
|
|
1219
1242
|
opacity: 1;
|
|
1220
1243
|
}
|
|
@@ -1226,8 +1249,8 @@ var fadeOutRightBig = import_react51.keyframes`
|
|
|
1226
1249
|
`;
|
|
1227
1250
|
|
|
1228
1251
|
// src/animations/fading_exits/fadeOutTopLeft.ts
|
|
1229
|
-
var
|
|
1230
|
-
var fadeOutTopLeft =
|
|
1252
|
+
var import_react51 = require("@emotion/react");
|
|
1253
|
+
var fadeOutTopLeft = import_react51.keyframes`
|
|
1231
1254
|
from {
|
|
1232
1255
|
opacity: 1;
|
|
1233
1256
|
transform: translate3d(0, 0, 0);
|
|
@@ -1240,8 +1263,8 @@ var fadeOutTopLeft = import_react52.keyframes`
|
|
|
1240
1263
|
`;
|
|
1241
1264
|
|
|
1242
1265
|
// src/animations/fading_exits/fadeOutTopRight.ts
|
|
1243
|
-
var
|
|
1244
|
-
var fadeOutTopRight =
|
|
1266
|
+
var import_react52 = require("@emotion/react");
|
|
1267
|
+
var fadeOutTopRight = import_react52.keyframes`
|
|
1245
1268
|
from {
|
|
1246
1269
|
opacity: 1;
|
|
1247
1270
|
transform: translate3d(0, 0, 0);
|
|
@@ -1254,8 +1277,8 @@ var fadeOutTopRight = import_react53.keyframes`
|
|
|
1254
1277
|
`;
|
|
1255
1278
|
|
|
1256
1279
|
// src/animations/fading_exits/fadeOutUp.ts
|
|
1257
|
-
var
|
|
1258
|
-
var fadeOutUp =
|
|
1280
|
+
var import_react53 = require("@emotion/react");
|
|
1281
|
+
var fadeOutUp = import_react53.keyframes`
|
|
1259
1282
|
from {
|
|
1260
1283
|
opacity: 1;
|
|
1261
1284
|
}
|
|
@@ -1267,8 +1290,8 @@ var fadeOutUp = import_react54.keyframes`
|
|
|
1267
1290
|
`;
|
|
1268
1291
|
|
|
1269
1292
|
// src/animations/fading_exits/fadeOutUpBig.ts
|
|
1270
|
-
var
|
|
1271
|
-
var fadeOutUpBig =
|
|
1293
|
+
var import_react54 = require("@emotion/react");
|
|
1294
|
+
var fadeOutUpBig = import_react54.keyframes`
|
|
1272
1295
|
from {
|
|
1273
1296
|
opacity: 1;
|
|
1274
1297
|
}
|
|
@@ -1305,23 +1328,19 @@ function getStyles3(big, reverse, direction) {
|
|
|
1305
1328
|
}
|
|
1306
1329
|
var Fade = (props) => {
|
|
1307
1330
|
const { big = false, direction, reverse = false, ...rest } = props;
|
|
1308
|
-
const keyframes87 = (0,
|
|
1331
|
+
const keyframes87 = (0, import_react55.useMemo)(
|
|
1309
1332
|
() => getStyles3(big, reverse, direction),
|
|
1310
1333
|
[big, direction, reverse]
|
|
1311
1334
|
);
|
|
1312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Reveal, {
|
|
1313
|
-
keyframes: keyframes87,
|
|
1314
|
-
...rest
|
|
1315
|
-
});
|
|
1335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Reveal, { keyframes: keyframes87, ...rest });
|
|
1316
1336
|
};
|
|
1317
1337
|
|
|
1318
1338
|
// src/components/Flip.tsx
|
|
1319
|
-
var
|
|
1320
|
-
var import_react63 = require("react");
|
|
1339
|
+
var import_react61 = require("react");
|
|
1321
1340
|
|
|
1322
1341
|
// src/animations/flippers/flip.ts
|
|
1323
|
-
var
|
|
1324
|
-
var flip =
|
|
1342
|
+
var import_react56 = require("@emotion/react");
|
|
1343
|
+
var flip = import_react56.keyframes`
|
|
1325
1344
|
from {
|
|
1326
1345
|
transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);
|
|
1327
1346
|
animation-timing-function: ease-out;
|
|
@@ -1352,8 +1371,8 @@ var flip = import_react57.keyframes`
|
|
|
1352
1371
|
`;
|
|
1353
1372
|
|
|
1354
1373
|
// src/animations/flippers/flipInX.ts
|
|
1355
|
-
var
|
|
1356
|
-
var flipInX =
|
|
1374
|
+
var import_react57 = require("@emotion/react");
|
|
1375
|
+
var flipInX = import_react57.keyframes`
|
|
1357
1376
|
from {
|
|
1358
1377
|
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
1359
1378
|
animation-timing-function: ease-in;
|
|
@@ -1380,8 +1399,8 @@ var flipInX = import_react58.keyframes`
|
|
|
1380
1399
|
`;
|
|
1381
1400
|
|
|
1382
1401
|
// src/animations/flippers/flipInY.ts
|
|
1383
|
-
var
|
|
1384
|
-
var flipInY =
|
|
1402
|
+
var import_react58 = require("@emotion/react");
|
|
1403
|
+
var flipInY = import_react58.keyframes`
|
|
1385
1404
|
from {
|
|
1386
1405
|
transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
|
|
1387
1406
|
animation-timing-function: ease-in;
|
|
@@ -1408,8 +1427,8 @@ var flipInY = import_react59.keyframes`
|
|
|
1408
1427
|
`;
|
|
1409
1428
|
|
|
1410
1429
|
// src/animations/flippers/flipOutX.ts
|
|
1411
|
-
var
|
|
1412
|
-
var flipOutX =
|
|
1430
|
+
var import_react59 = require("@emotion/react");
|
|
1431
|
+
var flipOutX = import_react59.keyframes`
|
|
1413
1432
|
from {
|
|
1414
1433
|
transform: perspective(400px);
|
|
1415
1434
|
}
|
|
@@ -1426,8 +1445,8 @@ var flipOutX = import_react60.keyframes`
|
|
|
1426
1445
|
`;
|
|
1427
1446
|
|
|
1428
1447
|
// src/animations/flippers/flipOutY.ts
|
|
1429
|
-
var
|
|
1430
|
-
var flipOutY =
|
|
1448
|
+
var import_react60 = require("@emotion/react");
|
|
1449
|
+
var flipOutY = import_react60.keyframes`
|
|
1431
1450
|
from {
|
|
1432
1451
|
transform: perspective(400px);
|
|
1433
1452
|
}
|
|
@@ -1455,28 +1474,28 @@ function getStyles4(reverse, direction) {
|
|
|
1455
1474
|
return flip;
|
|
1456
1475
|
}
|
|
1457
1476
|
}
|
|
1458
|
-
var animationCss =
|
|
1459
|
-
|
|
1460
|
-
|
|
1477
|
+
var animationCss = {
|
|
1478
|
+
backfaceVisibility: "visible"
|
|
1479
|
+
};
|
|
1461
1480
|
var Flip = (props) => {
|
|
1462
|
-
const { direction, reverse = false, ...rest } = props;
|
|
1463
|
-
const keyframes87 = (0,
|
|
1481
|
+
const { direction, reverse = false, style, ...rest } = props;
|
|
1482
|
+
const keyframes87 = (0, import_react61.useMemo)(
|
|
1464
1483
|
() => getStyles4(reverse, direction),
|
|
1465
1484
|
[direction, reverse]
|
|
1466
1485
|
);
|
|
1467
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1487
|
+
Reveal,
|
|
1488
|
+
{
|
|
1489
|
+
keyframes: keyframes87,
|
|
1490
|
+
style: Object.assign({}, style, animationCss),
|
|
1491
|
+
...rest
|
|
1492
|
+
}
|
|
1493
|
+
);
|
|
1472
1494
|
};
|
|
1473
1495
|
|
|
1474
|
-
// src/components/Hinge.tsx
|
|
1475
|
-
var import_react68 = require("@emotion/react");
|
|
1476
|
-
|
|
1477
1496
|
// src/animations/specials/hinge.ts
|
|
1478
|
-
var
|
|
1479
|
-
var hinge =
|
|
1497
|
+
var import_react62 = require("@emotion/react");
|
|
1498
|
+
var hinge = import_react62.keyframes`
|
|
1480
1499
|
0% {
|
|
1481
1500
|
animation-timing-function: ease-in-out;
|
|
1482
1501
|
}
|
|
@@ -1501,8 +1520,8 @@ var hinge = import_react64.keyframes`
|
|
|
1501
1520
|
`;
|
|
1502
1521
|
|
|
1503
1522
|
// src/animations/specials/jackInTheBox.ts
|
|
1504
|
-
var
|
|
1505
|
-
var jackInTheBox =
|
|
1523
|
+
var import_react63 = require("@emotion/react");
|
|
1524
|
+
var jackInTheBox = import_react63.keyframes`
|
|
1506
1525
|
from {
|
|
1507
1526
|
opacity: 0;
|
|
1508
1527
|
transform: scale(0.1) rotate(30deg);
|
|
@@ -1524,8 +1543,8 @@ var jackInTheBox = import_react65.keyframes`
|
|
|
1524
1543
|
`;
|
|
1525
1544
|
|
|
1526
1545
|
// src/animations/specials/rollIn.ts
|
|
1527
|
-
var
|
|
1528
|
-
var rollIn =
|
|
1546
|
+
var import_react64 = require("@emotion/react");
|
|
1547
|
+
var rollIn = import_react64.keyframes`
|
|
1529
1548
|
from {
|
|
1530
1549
|
opacity: 0;
|
|
1531
1550
|
transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
|
|
@@ -1538,8 +1557,8 @@ var rollIn = import_react66.keyframes`
|
|
|
1538
1557
|
`;
|
|
1539
1558
|
|
|
1540
1559
|
// src/animations/specials/rollOut.ts
|
|
1541
|
-
var
|
|
1542
|
-
var rollOut =
|
|
1560
|
+
var import_react65 = require("@emotion/react");
|
|
1561
|
+
var rollOut = import_react65.keyframes`
|
|
1543
1562
|
from {
|
|
1544
1563
|
opacity: 1;
|
|
1545
1564
|
}
|
|
@@ -1552,47 +1571,45 @@ var rollOut = import_react67.keyframes`
|
|
|
1552
1571
|
|
|
1553
1572
|
// src/components/Hinge.tsx
|
|
1554
1573
|
var import_jsx_runtime6 = require("@emotion/react/jsx-runtime");
|
|
1555
|
-
var animationCss2 =
|
|
1556
|
-
|
|
1557
|
-
|
|
1574
|
+
var animationCss2 = {
|
|
1575
|
+
transformOrigin: "top left"
|
|
1576
|
+
};
|
|
1558
1577
|
var Hinge = (props) => {
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1578
|
+
const { style, ...rest } = props;
|
|
1579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1580
|
+
Reveal,
|
|
1581
|
+
{
|
|
1582
|
+
keyframes: hinge,
|
|
1583
|
+
style: Object.assign({}, style, animationCss2),
|
|
1584
|
+
...rest
|
|
1585
|
+
}
|
|
1586
|
+
);
|
|
1564
1587
|
};
|
|
1565
1588
|
|
|
1566
1589
|
// src/components/JackInTheBox.tsx
|
|
1567
1590
|
var import_jsx_runtime7 = require("@emotion/react/jsx-runtime");
|
|
1568
1591
|
var JackInTheBox = (props) => {
|
|
1569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Reveal, {
|
|
1570
|
-
keyframes: jackInTheBox,
|
|
1571
|
-
...props
|
|
1572
|
-
});
|
|
1592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Reveal, { keyframes: jackInTheBox, ...props });
|
|
1573
1593
|
};
|
|
1574
1594
|
|
|
1575
1595
|
// src/components/Roll.tsx
|
|
1576
|
-
var
|
|
1596
|
+
var import_react66 = require("react");
|
|
1577
1597
|
var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
|
|
1578
1598
|
function getStyles5(reverse) {
|
|
1579
1599
|
return reverse ? rollOut : rollIn;
|
|
1580
1600
|
}
|
|
1581
1601
|
var Roll = (props) => {
|
|
1582
1602
|
const { reverse = false, ...rest } = props;
|
|
1583
|
-
const keyframes87 = (0,
|
|
1584
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Reveal, {
|
|
1585
|
-
keyframes: keyframes87,
|
|
1586
|
-
...rest
|
|
1587
|
-
});
|
|
1603
|
+
const keyframes87 = (0, import_react66.useMemo)(() => getStyles5(reverse), [reverse]);
|
|
1604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Reveal, { keyframes: keyframes87, ...rest });
|
|
1588
1605
|
};
|
|
1589
1606
|
|
|
1590
1607
|
// src/components/Rotate.tsx
|
|
1591
|
-
var
|
|
1608
|
+
var import_react77 = require("react");
|
|
1592
1609
|
|
|
1593
1610
|
// src/animations/rotating_entrances/rotateIn.ts
|
|
1594
|
-
var
|
|
1595
|
-
var rotateIn =
|
|
1611
|
+
var import_react67 = require("@emotion/react");
|
|
1612
|
+
var rotateIn = import_react67.keyframes`
|
|
1596
1613
|
from {
|
|
1597
1614
|
transform: rotate3d(0, 0, 1, -200deg);
|
|
1598
1615
|
opacity: 0;
|
|
@@ -1605,8 +1622,8 @@ var rotateIn = import_react70.keyframes`
|
|
|
1605
1622
|
`;
|
|
1606
1623
|
|
|
1607
1624
|
// src/animations/rotating_entrances/rotateInDownLeft.ts
|
|
1608
|
-
var
|
|
1609
|
-
var rotateInDownLeft =
|
|
1625
|
+
var import_react68 = require("@emotion/react");
|
|
1626
|
+
var rotateInDownLeft = import_react68.keyframes`
|
|
1610
1627
|
from {
|
|
1611
1628
|
transform: rotate3d(0, 0, 1, -45deg);
|
|
1612
1629
|
opacity: 0;
|
|
@@ -1619,8 +1636,8 @@ var rotateInDownLeft = import_react71.keyframes`
|
|
|
1619
1636
|
`;
|
|
1620
1637
|
|
|
1621
1638
|
// src/animations/rotating_entrances/rotateInDownRight.ts
|
|
1622
|
-
var
|
|
1623
|
-
var rotateInDownRight =
|
|
1639
|
+
var import_react69 = require("@emotion/react");
|
|
1640
|
+
var rotateInDownRight = import_react69.keyframes`
|
|
1624
1641
|
from {
|
|
1625
1642
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1626
1643
|
opacity: 0;
|
|
@@ -1633,8 +1650,8 @@ var rotateInDownRight = import_react72.keyframes`
|
|
|
1633
1650
|
`;
|
|
1634
1651
|
|
|
1635
1652
|
// src/animations/rotating_entrances/rotateInUpLeft.ts
|
|
1636
|
-
var
|
|
1637
|
-
var rotateInUpLeft =
|
|
1653
|
+
var import_react70 = require("@emotion/react");
|
|
1654
|
+
var rotateInUpLeft = import_react70.keyframes`
|
|
1638
1655
|
from {
|
|
1639
1656
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1640
1657
|
opacity: 0;
|
|
@@ -1647,8 +1664,8 @@ var rotateInUpLeft = import_react73.keyframes`
|
|
|
1647
1664
|
`;
|
|
1648
1665
|
|
|
1649
1666
|
// src/animations/rotating_entrances/rotateInUpRight.ts
|
|
1650
|
-
var
|
|
1651
|
-
var rotateInUpRight =
|
|
1667
|
+
var import_react71 = require("@emotion/react");
|
|
1668
|
+
var rotateInUpRight = import_react71.keyframes`
|
|
1652
1669
|
from {
|
|
1653
1670
|
transform: rotate3d(0, 0, 1, -90deg);
|
|
1654
1671
|
opacity: 0;
|
|
@@ -1661,8 +1678,8 @@ var rotateInUpRight = import_react74.keyframes`
|
|
|
1661
1678
|
`;
|
|
1662
1679
|
|
|
1663
1680
|
// src/animations/rotating_exits/rotateOut.ts
|
|
1664
|
-
var
|
|
1665
|
-
var rotateOut =
|
|
1681
|
+
var import_react72 = require("@emotion/react");
|
|
1682
|
+
var rotateOut = import_react72.keyframes`
|
|
1666
1683
|
from {
|
|
1667
1684
|
opacity: 1;
|
|
1668
1685
|
}
|
|
@@ -1674,8 +1691,8 @@ var rotateOut = import_react75.keyframes`
|
|
|
1674
1691
|
`;
|
|
1675
1692
|
|
|
1676
1693
|
// src/animations/rotating_exits/rotateOutDownLeft.ts
|
|
1677
|
-
var
|
|
1678
|
-
var rotateOutDownLeft =
|
|
1694
|
+
var import_react73 = require("@emotion/react");
|
|
1695
|
+
var rotateOutDownLeft = import_react73.keyframes`
|
|
1679
1696
|
from {
|
|
1680
1697
|
opacity: 1;
|
|
1681
1698
|
}
|
|
@@ -1687,8 +1704,8 @@ var rotateOutDownLeft = import_react76.keyframes`
|
|
|
1687
1704
|
`;
|
|
1688
1705
|
|
|
1689
1706
|
// src/animations/rotating_exits/rotateOutDownRight.ts
|
|
1690
|
-
var
|
|
1691
|
-
var rotateOutDownRight =
|
|
1707
|
+
var import_react74 = require("@emotion/react");
|
|
1708
|
+
var rotateOutDownRight = import_react74.keyframes`
|
|
1692
1709
|
from {
|
|
1693
1710
|
opacity: 1;
|
|
1694
1711
|
}
|
|
@@ -1700,8 +1717,8 @@ var rotateOutDownRight = import_react77.keyframes`
|
|
|
1700
1717
|
`;
|
|
1701
1718
|
|
|
1702
1719
|
// src/animations/rotating_exits/rotateOutUpLeft.ts
|
|
1703
|
-
var
|
|
1704
|
-
var rotateOutUpLeft =
|
|
1720
|
+
var import_react75 = require("@emotion/react");
|
|
1721
|
+
var rotateOutUpLeft = import_react75.keyframes`
|
|
1705
1722
|
from {
|
|
1706
1723
|
opacity: 1;
|
|
1707
1724
|
}
|
|
@@ -1713,8 +1730,8 @@ var rotateOutUpLeft = import_react78.keyframes`
|
|
|
1713
1730
|
`;
|
|
1714
1731
|
|
|
1715
1732
|
// src/animations/rotating_exits/rotateOutUpRight.ts
|
|
1716
|
-
var
|
|
1717
|
-
var rotateOutUpRight =
|
|
1733
|
+
var import_react76 = require("@emotion/react");
|
|
1734
|
+
var rotateOutUpRight = import_react76.keyframes`
|
|
1718
1735
|
from {
|
|
1719
1736
|
opacity: 1;
|
|
1720
1737
|
}
|
|
@@ -1742,24 +1759,27 @@ function getStyles6(reverse, direction) {
|
|
|
1742
1759
|
}
|
|
1743
1760
|
}
|
|
1744
1761
|
var Rotate = (props) => {
|
|
1745
|
-
const { direction, reverse = false, ...rest } = props;
|
|
1746
|
-
const [keyframes87, animationCss3] = (0,
|
|
1762
|
+
const { direction, reverse = false, style, ...rest } = props;
|
|
1763
|
+
const [keyframes87, animationCss3] = (0, import_react77.useMemo)(
|
|
1747
1764
|
() => getStyles6(reverse, direction),
|
|
1748
1765
|
[direction, reverse]
|
|
1749
1766
|
);
|
|
1750
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1768
|
+
Reveal,
|
|
1769
|
+
{
|
|
1770
|
+
keyframes: keyframes87,
|
|
1771
|
+
style: Object.assign({}, style, animationCss3),
|
|
1772
|
+
...rest
|
|
1773
|
+
}
|
|
1774
|
+
);
|
|
1755
1775
|
};
|
|
1756
1776
|
|
|
1757
1777
|
// src/components/Slide.tsx
|
|
1758
|
-
var
|
|
1778
|
+
var import_react86 = require("react");
|
|
1759
1779
|
|
|
1760
1780
|
// src/animations/sliding_entrances/slideInDown.ts
|
|
1761
|
-
var
|
|
1762
|
-
var slideInDown =
|
|
1781
|
+
var import_react78 = require("@emotion/react");
|
|
1782
|
+
var slideInDown = import_react78.keyframes`
|
|
1763
1783
|
from {
|
|
1764
1784
|
transform: translate3d(0, -100%, 0);
|
|
1765
1785
|
visibility: visible;
|
|
@@ -1771,8 +1791,8 @@ var slideInDown = import_react81.keyframes`
|
|
|
1771
1791
|
`;
|
|
1772
1792
|
|
|
1773
1793
|
// src/animations/sliding_entrances/slideInLeft.ts
|
|
1774
|
-
var
|
|
1775
|
-
var slideInLeft =
|
|
1794
|
+
var import_react79 = require("@emotion/react");
|
|
1795
|
+
var slideInLeft = import_react79.keyframes`
|
|
1776
1796
|
from {
|
|
1777
1797
|
transform: translate3d(-100%, 0, 0);
|
|
1778
1798
|
visibility: visible;
|
|
@@ -1784,8 +1804,8 @@ var slideInLeft = import_react82.keyframes`
|
|
|
1784
1804
|
`;
|
|
1785
1805
|
|
|
1786
1806
|
// src/animations/sliding_entrances/slideInRight.ts
|
|
1787
|
-
var
|
|
1788
|
-
var slideInRight =
|
|
1807
|
+
var import_react80 = require("@emotion/react");
|
|
1808
|
+
var slideInRight = import_react80.keyframes`
|
|
1789
1809
|
from {
|
|
1790
1810
|
transform: translate3d(100%, 0, 0);
|
|
1791
1811
|
visibility: visible;
|
|
@@ -1797,8 +1817,8 @@ var slideInRight = import_react83.keyframes`
|
|
|
1797
1817
|
`;
|
|
1798
1818
|
|
|
1799
1819
|
// src/animations/sliding_entrances/slideInUp.ts
|
|
1800
|
-
var
|
|
1801
|
-
var slideInUp =
|
|
1820
|
+
var import_react81 = require("@emotion/react");
|
|
1821
|
+
var slideInUp = import_react81.keyframes`
|
|
1802
1822
|
from {
|
|
1803
1823
|
transform: translate3d(0, 100%, 0);
|
|
1804
1824
|
visibility: visible;
|
|
@@ -1810,8 +1830,8 @@ var slideInUp = import_react84.keyframes`
|
|
|
1810
1830
|
`;
|
|
1811
1831
|
|
|
1812
1832
|
// src/animations/sliding_exits/slideOutDown.ts
|
|
1813
|
-
var
|
|
1814
|
-
var slideOutDown =
|
|
1833
|
+
var import_react82 = require("@emotion/react");
|
|
1834
|
+
var slideOutDown = import_react82.keyframes`
|
|
1815
1835
|
from {
|
|
1816
1836
|
transform: translate3d(0, 0, 0);
|
|
1817
1837
|
}
|
|
@@ -1823,8 +1843,8 @@ var slideOutDown = import_react85.keyframes`
|
|
|
1823
1843
|
`;
|
|
1824
1844
|
|
|
1825
1845
|
// src/animations/sliding_exits/slideOutLeft.ts
|
|
1826
|
-
var
|
|
1827
|
-
var slideOutLeft =
|
|
1846
|
+
var import_react83 = require("@emotion/react");
|
|
1847
|
+
var slideOutLeft = import_react83.keyframes`
|
|
1828
1848
|
from {
|
|
1829
1849
|
transform: translate3d(0, 0, 0);
|
|
1830
1850
|
}
|
|
@@ -1836,8 +1856,8 @@ var slideOutLeft = import_react86.keyframes`
|
|
|
1836
1856
|
`;
|
|
1837
1857
|
|
|
1838
1858
|
// src/animations/sliding_exits/slideOutRight.ts
|
|
1839
|
-
var
|
|
1840
|
-
var slideOutRight =
|
|
1859
|
+
var import_react84 = require("@emotion/react");
|
|
1860
|
+
var slideOutRight = import_react84.keyframes`
|
|
1841
1861
|
from {
|
|
1842
1862
|
transform: translate3d(0, 0, 0);
|
|
1843
1863
|
}
|
|
@@ -1849,8 +1869,8 @@ var slideOutRight = import_react87.keyframes`
|
|
|
1849
1869
|
`;
|
|
1850
1870
|
|
|
1851
1871
|
// src/animations/sliding_exits/slideOutUp.ts
|
|
1852
|
-
var
|
|
1853
|
-
var slideOutUp =
|
|
1872
|
+
var import_react85 = require("@emotion/react");
|
|
1873
|
+
var slideOutUp = import_react85.keyframes`
|
|
1854
1874
|
from {
|
|
1855
1875
|
transform: translate3d(0, 0, 0);
|
|
1856
1876
|
}
|
|
@@ -1878,22 +1898,19 @@ function getStyles7(reverse, direction) {
|
|
|
1878
1898
|
}
|
|
1879
1899
|
var Slide = (props) => {
|
|
1880
1900
|
const { direction, reverse = false, ...rest } = props;
|
|
1881
|
-
const keyframes87 = (0,
|
|
1901
|
+
const keyframes87 = (0, import_react86.useMemo)(
|
|
1882
1902
|
() => getStyles7(reverse, direction),
|
|
1883
1903
|
[direction, reverse]
|
|
1884
1904
|
);
|
|
1885
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Reveal, {
|
|
1886
|
-
keyframes: keyframes87,
|
|
1887
|
-
...rest
|
|
1888
|
-
});
|
|
1905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Reveal, { keyframes: keyframes87, ...rest });
|
|
1889
1906
|
};
|
|
1890
1907
|
|
|
1891
1908
|
// src/components/Zoom.tsx
|
|
1892
|
-
var
|
|
1909
|
+
var import_react97 = require("react");
|
|
1893
1910
|
|
|
1894
1911
|
// src/animations/zooming_entrances/zoomIn.ts
|
|
1895
|
-
var
|
|
1896
|
-
var zoomIn =
|
|
1912
|
+
var import_react87 = require("@emotion/react");
|
|
1913
|
+
var zoomIn = import_react87.keyframes`
|
|
1897
1914
|
from {
|
|
1898
1915
|
opacity: 0;
|
|
1899
1916
|
transform: scale3d(0.3, 0.3, 0.3);
|
|
@@ -1905,8 +1922,8 @@ var zoomIn = import_react90.keyframes`
|
|
|
1905
1922
|
`;
|
|
1906
1923
|
|
|
1907
1924
|
// src/animations/zooming_entrances/zoomInDown.ts
|
|
1908
|
-
var
|
|
1909
|
-
var zoomInDown =
|
|
1925
|
+
var import_react88 = require("@emotion/react");
|
|
1926
|
+
var zoomInDown = import_react88.keyframes`
|
|
1910
1927
|
from {
|
|
1911
1928
|
opacity: 0;
|
|
1912
1929
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
|
|
@@ -1921,8 +1938,8 @@ var zoomInDown = import_react91.keyframes`
|
|
|
1921
1938
|
`;
|
|
1922
1939
|
|
|
1923
1940
|
// src/animations/zooming_entrances/zoomInLeft.ts
|
|
1924
|
-
var
|
|
1925
|
-
var zoomInLeft =
|
|
1941
|
+
var import_react89 = require("@emotion/react");
|
|
1942
|
+
var zoomInLeft = import_react89.keyframes`
|
|
1926
1943
|
from {
|
|
1927
1944
|
opacity: 0;
|
|
1928
1945
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
|
|
@@ -1937,8 +1954,8 @@ var zoomInLeft = import_react92.keyframes`
|
|
|
1937
1954
|
`;
|
|
1938
1955
|
|
|
1939
1956
|
// src/animations/zooming_entrances/zoomInRight.ts
|
|
1940
|
-
var
|
|
1941
|
-
var zoomInRight =
|
|
1957
|
+
var import_react90 = require("@emotion/react");
|
|
1958
|
+
var zoomInRight = import_react90.keyframes`
|
|
1942
1959
|
from {
|
|
1943
1960
|
opacity: 0;
|
|
1944
1961
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
|
|
@@ -1953,8 +1970,8 @@ var zoomInRight = import_react93.keyframes`
|
|
|
1953
1970
|
`;
|
|
1954
1971
|
|
|
1955
1972
|
// src/animations/zooming_entrances/zoomInUp.ts
|
|
1956
|
-
var
|
|
1957
|
-
var zoomInUp =
|
|
1973
|
+
var import_react91 = require("@emotion/react");
|
|
1974
|
+
var zoomInUp = import_react91.keyframes`
|
|
1958
1975
|
from {
|
|
1959
1976
|
opacity: 0;
|
|
1960
1977
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
|
|
@@ -1969,8 +1986,8 @@ var zoomInUp = import_react94.keyframes`
|
|
|
1969
1986
|
`;
|
|
1970
1987
|
|
|
1971
1988
|
// src/animations/zooming_exits/zoomOut.ts
|
|
1972
|
-
var
|
|
1973
|
-
var zoomOut =
|
|
1989
|
+
var import_react92 = require("@emotion/react");
|
|
1990
|
+
var zoomOut = import_react92.keyframes`
|
|
1974
1991
|
from {
|
|
1975
1992
|
opacity: 1;
|
|
1976
1993
|
}
|
|
@@ -1986,8 +2003,8 @@ var zoomOut = import_react95.keyframes`
|
|
|
1986
2003
|
`;
|
|
1987
2004
|
|
|
1988
2005
|
// src/animations/zooming_exits/zoomOutDown.ts
|
|
1989
|
-
var
|
|
1990
|
-
var zoomOutDown =
|
|
2006
|
+
var import_react93 = require("@emotion/react");
|
|
2007
|
+
var zoomOutDown = import_react93.keyframes`
|
|
1991
2008
|
40% {
|
|
1992
2009
|
opacity: 1;
|
|
1993
2010
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
|
|
@@ -2002,8 +2019,8 @@ var zoomOutDown = import_react96.keyframes`
|
|
|
2002
2019
|
`;
|
|
2003
2020
|
|
|
2004
2021
|
// src/animations/zooming_exits/zoomOutLeft.ts
|
|
2005
|
-
var
|
|
2006
|
-
var zoomOutLeft =
|
|
2022
|
+
var import_react94 = require("@emotion/react");
|
|
2023
|
+
var zoomOutLeft = import_react94.keyframes`
|
|
2007
2024
|
40% {
|
|
2008
2025
|
opacity: 1;
|
|
2009
2026
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);
|
|
@@ -2016,8 +2033,8 @@ var zoomOutLeft = import_react97.keyframes`
|
|
|
2016
2033
|
`;
|
|
2017
2034
|
|
|
2018
2035
|
// src/animations/zooming_exits/zoomOutRight.ts
|
|
2019
|
-
var
|
|
2020
|
-
var zoomOutRight =
|
|
2036
|
+
var import_react95 = require("@emotion/react");
|
|
2037
|
+
var zoomOutRight = import_react95.keyframes`
|
|
2021
2038
|
40% {
|
|
2022
2039
|
opacity: 1;
|
|
2023
2040
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);
|
|
@@ -2030,8 +2047,8 @@ var zoomOutRight = import_react98.keyframes`
|
|
|
2030
2047
|
`;
|
|
2031
2048
|
|
|
2032
2049
|
// src/animations/zooming_exits/zoomOutUp.ts
|
|
2033
|
-
var
|
|
2034
|
-
var zoomOutUp =
|
|
2050
|
+
var import_react96 = require("@emotion/react");
|
|
2051
|
+
var zoomOutUp = import_react96.keyframes`
|
|
2035
2052
|
40% {
|
|
2036
2053
|
opacity: 1;
|
|
2037
2054
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
|
|
@@ -2063,14 +2080,11 @@ function getStyles8(reverse, direction) {
|
|
|
2063
2080
|
}
|
|
2064
2081
|
var Zoom = (props) => {
|
|
2065
2082
|
const { direction, reverse = false, ...rest } = props;
|
|
2066
|
-
const keyframes87 = (0,
|
|
2083
|
+
const keyframes87 = (0, import_react97.useMemo)(
|
|
2067
2084
|
() => getStyles8(reverse, direction),
|
|
2068
2085
|
[direction, reverse]
|
|
2069
2086
|
);
|
|
2070
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Reveal, {
|
|
2071
|
-
keyframes: keyframes87,
|
|
2072
|
-
...rest
|
|
2073
|
-
});
|
|
2087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Reveal, { keyframes: keyframes87, ...rest });
|
|
2074
2088
|
};
|
|
2075
2089
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2076
2090
|
0 && (module.exports = {
|