@m4l/components 0.0.24 → 0.0.25
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,136 @@
|
|
|
1
|
+
import { VariantsType } from '../type';
|
|
2
|
+
export declare const varBounce: (props?: VariantsType | undefined) => {
|
|
3
|
+
in: {
|
|
4
|
+
initial: {};
|
|
5
|
+
animate: {
|
|
6
|
+
scale: number[];
|
|
7
|
+
opacity: number[];
|
|
8
|
+
transition: {
|
|
9
|
+
duration: number;
|
|
10
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exit: {
|
|
14
|
+
scale: number[];
|
|
15
|
+
opacity: number[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
inUp: {
|
|
19
|
+
initial: {};
|
|
20
|
+
animate: {
|
|
21
|
+
y: number[];
|
|
22
|
+
scaleY: number[];
|
|
23
|
+
opacity: number[];
|
|
24
|
+
transition: {
|
|
25
|
+
duration: number;
|
|
26
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exit: {
|
|
30
|
+
y: number[];
|
|
31
|
+
scaleY: number[];
|
|
32
|
+
opacity: number[];
|
|
33
|
+
transition: {
|
|
34
|
+
duration: number;
|
|
35
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
inDown: {
|
|
40
|
+
initial: {};
|
|
41
|
+
animate: {
|
|
42
|
+
y: number[];
|
|
43
|
+
scaleY: number[];
|
|
44
|
+
opacity: number[];
|
|
45
|
+
transition: {
|
|
46
|
+
duration: number;
|
|
47
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exit: {
|
|
51
|
+
y: number[];
|
|
52
|
+
scaleY: number[];
|
|
53
|
+
opacity: number[];
|
|
54
|
+
transition: {
|
|
55
|
+
duration: number;
|
|
56
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
inLeft: {
|
|
61
|
+
initial: {};
|
|
62
|
+
animate: {
|
|
63
|
+
x: number[];
|
|
64
|
+
scaleX: number[];
|
|
65
|
+
opacity: number[];
|
|
66
|
+
transition: {
|
|
67
|
+
duration: number;
|
|
68
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
exit: {
|
|
72
|
+
x: number[];
|
|
73
|
+
scaleX: number[];
|
|
74
|
+
opacity: number[];
|
|
75
|
+
transition: {
|
|
76
|
+
duration: number;
|
|
77
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
inRight: {
|
|
82
|
+
initial: {};
|
|
83
|
+
animate: {
|
|
84
|
+
x: number[];
|
|
85
|
+
scaleX: number[];
|
|
86
|
+
opacity: number[];
|
|
87
|
+
transition: {
|
|
88
|
+
duration: number;
|
|
89
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exit: {
|
|
93
|
+
x: number[];
|
|
94
|
+
scaleX: number[];
|
|
95
|
+
opacity: number[];
|
|
96
|
+
transition: {
|
|
97
|
+
duration: number;
|
|
98
|
+
ease: "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | number[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
out: {
|
|
103
|
+
animate: {
|
|
104
|
+
scale: number[];
|
|
105
|
+
opacity: number[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
outUp: {
|
|
109
|
+
animate: {
|
|
110
|
+
y: number[];
|
|
111
|
+
scaleY: number[];
|
|
112
|
+
opacity: number[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
outDown: {
|
|
116
|
+
animate: {
|
|
117
|
+
y: number[];
|
|
118
|
+
scaleY: number[];
|
|
119
|
+
opacity: number[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
outLeft: {
|
|
123
|
+
animate: {
|
|
124
|
+
x: number[];
|
|
125
|
+
scaleX: number[];
|
|
126
|
+
opacity: number[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
outRight: {
|
|
130
|
+
animate: {
|
|
131
|
+
x: number[];
|
|
132
|
+
scaleX: number[];
|
|
133
|
+
opacity: number[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { v as varTranEnter, a as varTranExit } from "./transition.js";
|
|
2
|
+
const varBounce = (props) => {
|
|
3
|
+
const durationIn = props?.durationIn;
|
|
4
|
+
const durationOut = props?.durationOut;
|
|
5
|
+
const easeIn = props?.easeIn;
|
|
6
|
+
const easeOut = props?.easeOut;
|
|
7
|
+
return {
|
|
8
|
+
in: {
|
|
9
|
+
initial: {},
|
|
10
|
+
animate: {
|
|
11
|
+
scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
|
|
12
|
+
opacity: [0, 1, 1, 1, 1, 1],
|
|
13
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
14
|
+
},
|
|
15
|
+
exit: {
|
|
16
|
+
scale: [0.9, 1.1, 0.3],
|
|
17
|
+
opacity: [1, 1, 0]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
inUp: {
|
|
21
|
+
initial: {},
|
|
22
|
+
animate: {
|
|
23
|
+
y: [720, -24, 12, -4, 0],
|
|
24
|
+
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
25
|
+
opacity: [0, 1, 1, 1, 1],
|
|
26
|
+
transition: { ...varTranEnter({ durationIn, easeIn }) }
|
|
27
|
+
},
|
|
28
|
+
exit: {
|
|
29
|
+
y: [12, -24, 720],
|
|
30
|
+
scaleY: [0.985, 0.9, 3],
|
|
31
|
+
opacity: [1, 1, 0],
|
|
32
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
inDown: {
|
|
36
|
+
initial: {},
|
|
37
|
+
animate: {
|
|
38
|
+
y: [-720, 24, -12, 4, 0],
|
|
39
|
+
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
40
|
+
opacity: [0, 1, 1, 1, 1],
|
|
41
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
42
|
+
},
|
|
43
|
+
exit: {
|
|
44
|
+
y: [-12, 24, -720],
|
|
45
|
+
scaleY: [0.985, 0.9, 3],
|
|
46
|
+
opacity: [1, 1, 0],
|
|
47
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
inLeft: {
|
|
51
|
+
initial: {},
|
|
52
|
+
animate: {
|
|
53
|
+
x: [-720, 24, -12, 4, 0],
|
|
54
|
+
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
55
|
+
opacity: [0, 1, 1, 1, 1],
|
|
56
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
57
|
+
},
|
|
58
|
+
exit: {
|
|
59
|
+
x: [0, 24, -720],
|
|
60
|
+
scaleX: [1, 0.9, 2],
|
|
61
|
+
opacity: [1, 1, 0],
|
|
62
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
inRight: {
|
|
66
|
+
initial: {},
|
|
67
|
+
animate: {
|
|
68
|
+
x: [720, -24, 12, -4, 0],
|
|
69
|
+
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
70
|
+
opacity: [0, 1, 1, 1, 1],
|
|
71
|
+
transition: varTranEnter({ durationIn, easeIn })
|
|
72
|
+
},
|
|
73
|
+
exit: {
|
|
74
|
+
x: [0, -24, 720],
|
|
75
|
+
scaleX: [1, 0.9, 2],
|
|
76
|
+
opacity: [1, 1, 0],
|
|
77
|
+
transition: varTranExit({ durationOut, easeOut })
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
out: {
|
|
81
|
+
animate: { scale: [0.9, 1.1, 0.3], opacity: [1, 1, 0] }
|
|
82
|
+
},
|
|
83
|
+
outUp: {
|
|
84
|
+
animate: { y: [-12, 24, -720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
|
|
85
|
+
},
|
|
86
|
+
outDown: {
|
|
87
|
+
animate: { y: [12, -24, 720], scaleY: [0.985, 0.9, 3], opacity: [1, 1, 0] }
|
|
88
|
+
},
|
|
89
|
+
outLeft: {
|
|
90
|
+
animate: { x: [0, 24, -720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
|
|
91
|
+
},
|
|
92
|
+
outRight: {
|
|
93
|
+
animate: { x: [0, -24, 720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] }
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export { varBounce as v };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
|
42
42
|
import "./react-splitter-layout.js";
|
|
43
43
|
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|
|
44
44
|
export { v as varFade } from "./components/animate/variants/fade.js";
|
|
45
|
+
export { v as varBounce } from "./components/animate/variants/bounce.js";
|
|
45
46
|
export { v as varContainer } from "./components/animate/variants/container.js";
|
|
46
47
|
export { v as varTranEnter, a as varTranExit, b as varTranHover } from "./components/animate/variants/transition.js";
|
|
47
48
|
export { M as MotionContainer } from "./components/animate/MotionContainer/index.js";
|