From 20b2d114dfdf23d3cfc1796ec5346cc25744420c Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 21 Mar 2024 20:59:54 +0800 Subject: [PATCH] fix: transition view Signed-off-by: Innei --- src/app/(app)/(home)/page.tsx | 4 +--- src/components/ui/transition/factor.tsx | 13 +++++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/(app)/(home)/page.tsx b/src/app/(app)/(home)/page.tsx index 7d3c620ff2..965e485d81 100644 --- a/src/app/(app)/(home)/page.tsx +++ b/src/app/(app)/(home)/page.tsx @@ -183,9 +183,7 @@ const Hero = () => { -
+
{ const motionProps: MotionProps = { initial: initial || from, - animate: to, + animate: { + ...to, + transition: { + duration, + ...(preset || microReboundPreset), + ...animation.enter, + delay: enter / 1000, + }, + }, transition: { duration, - ...(preset || microReboundPreset), - ...animation.enter, - delay: enter / 1000, }, exit: { ...from,