From b125d16a2e15d9849fd7e7fa319d210d3b755f60 Mon Sep 17 00:00:00 2001 From: zhangxiang Date: Tue, 20 Oct 2026 22:06:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(motion):=20=E9=A6=96=E9=A1=B5=E5=BD=B1?= =?UTF-8?q?=E5=83=8F=20hover=20=E4=BD=8D=E7=A7=BB=E6=94=B9=E7=94=A8=20--tr?= =?UTF-8?q?ansition-hover=20=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 三处场间位移把 500ms 硬编码在 class 上(`duration-500`),与 CONTEXT.md 动效四原则里 hover 那一档 150ms 冲突。仓库已有令牌:globals.css:287 定义 `--transition-hover: 150ms`,tailwind.config.js:215 把它映射到 transitionDuration.hover ⇒ 改用 `duration-hover`,不再新增数值。 --- src/app/(marketing)/home-content-v16.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(marketing)/home-content-v16.tsx b/src/app/(marketing)/home-content-v16.tsx index e07f2c8..10b4877 100644 --- a/src/app/(marketing)/home-content-v16.tsx +++ b/src/app/(marketing)/home-content-v16.tsx @@ -332,7 +332,7 @@ function InsightsBlock({ news, pageCopy }: { news?: NewsItem[]; pageCopy?: Recor aria-hidden="true" fill sizes="(min-width: 1024px) 55vw, 100vw" - className="pointer-events-none absolute inset-0 -z-10 object-cover opacity-70 transition-transform duration-500 ease-out group-hover:scale-[1.03]" + className="pointer-events-none absolute inset-0 -z-10 object-cover opacity-70 transition-transform duration-hover ease-out group-hover:scale-[1.03]" />