Compare commits

..
3 Commits
Author SHA1 Message Date
mohandClaude Opus 4.8 7543271086 FIX - Type dock bounce ease as const tuple for framer-motion
CI / quality (push) Waiting to run
framer-motion's stricter types reject a cubic-bezier ease inferred as number[]; `as const` makes it a 4-tuple so the production build type check passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-22 10:41:48 +02:00
MOH 3c9af70f98 Merge branch 'main' of https://git.mohfarawati.de/mohs/sass-mohfarawati
CI / quality (push) Canceled after 0s
2026-09-20 22:00:09 +02:00
MOH 91ff6b9edb POLISHED - Soften dock bounce animation to match macOS feel 2026-09-20 21:34:50 +02:00
+2 -2
View File
@@ -65,8 +65,8 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps)
? {} ? {}
: { : {
onClick: () => setBouncing(id), onClick: () => setBouncing(id),
animate: bouncing === id ? { y: [0, -18, 0, -6, 0] } : { y: 0 }, animate: bouncing === id ? { y: [0, -5, 0, -2, 0] } : { y: 0 },
transition: { duration: 0.5, ease: "easeOut" as const }, transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] as const },
onAnimationComplete: () => setBouncing((cur) => (cur === id ? null : cur)), onAnimationComplete: () => setBouncing((cur) => (cur === id ? null : cur)),
}; };