refactor(animations): converge P1 motion durations to ≤300ms target

- 151 scripted + 1 manual duration fixes across 46 files
- framer entrance 0.5/0.6s -> 0.3s
- Tailwind hover -> duration-150, entrance -> duration-300
- preserve flip-clock/page-transition per semantic decision
- design-system.ts dead-code deferred
- P1 violations 156 -> 5; P0 remains 0; OK class 249 -> 400
- verified: tsc clean, eslint 0 errors
- verified: 130/130 jest suites, 1573 passed
- verified: visual regression 46/46 zero-pixel diff

Co-Authored-By: 阿睿 <workbuddy@tencent.com>
This commit is contained in:
zhangxiangand阿睿 committed 2026-09-20 11:50:58 +08:00
1 parent 33564b7e9c
commit 2aa0e21319
46 files changed
+151 -151

No files matched your search

+3 -3
View File
@@ -35,7 +35,7 @@ export function SectionHeader({
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.6, ease: EASE }}
transition={{ duration: 0.3, ease: EASE }}
>
{/* Eyebrow label with brand accent bar */}
<div className="flex items-center gap-3 mb-4 md:mb-5">
@@ -51,7 +51,7 @@ export function SectionHeader({
initial={shouldReduceMotion ? {} : { scaleY: 0 }}
whileInView={{ scaleY: 1 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.4, delay: 0.1, ease: EASE }}
transition={{ duration: 0.3, delay: 0.1, ease: EASE }}
/>
<motion.div
className="text-[10px] tracking-[4px] uppercase font-medium"
@@ -63,7 +63,7 @@ export function SectionHeader({
initial={shouldReduceMotion ? {} : { opacity: 0, x: -8 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.4, delay: 0.2, ease: EASE }}
transition={{ duration: 0.3, delay: 0.2, ease: EASE }}
>
{label}
</motion.div>