Commit e3758624 authored by Chunchi Che's avatar Chunchi Che

make animation faster

parent 5f2cff6b
...@@ -107,7 +107,7 @@ export const moveToGround: MoveFunc = async (props) => { ...@@ -107,7 +107,7 @@ export const moveToGround: MoveFunc = async (props) => {
ry, ry,
rz, rz,
config: { config: {
tension: 250, duration: 200,
clamp: true, clamp: true,
easing: easings.easeOutSine, easing: easings.easeOutSine,
}, },
...@@ -121,7 +121,7 @@ export const moveToGround: MoveFunc = async (props) => { ...@@ -121,7 +121,7 @@ export const moveToGround: MoveFunc = async (props) => {
zIndex: is_overlay ? 1 : 3, zIndex: is_overlay ? 1 : 3,
config: { config: {
easing: easings.easeInQuad, easing: easings.easeInQuad,
duration: 200, duration: 100,
clamp: true, clamp: true,
}, },
}); });
......
...@@ -55,5 +55,9 @@ export const moveToHand: MoveFunc = async (props) => { ...@@ -55,5 +55,9 @@ export const moveToHand: MoveFunc = async (props) => {
height: HAND_CARD_HEIGHT, height: HAND_CARD_HEIGHT,
zIndex: sequence, zIndex: sequence,
// rx: -PLANE_ROTATE_X, // rx: -PLANE_ROTATE_X,
config: {
duration: 200,
clamp: true,
},
}); });
}; };
...@@ -42,7 +42,8 @@ export const moveToOutside: MoveFunc = async (props) => { ...@@ -42,7 +42,8 @@ export const moveToOutside: MoveFunc = async (props) => {
subZ: 100, subZ: 100,
zIndex: sequence, zIndex: sequence,
config: { config: {
tension: 140, duration: 200,
clamp: true,
}, },
}); });
api.set({ subZ: 0 }); api.set({ subZ: 0 });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment