POLISHED - Soften dock bounce animation to match macOS feel

This commit is contained in:
MOH
2026-09-20 21:34:50 +02:00
parent d5e50b84a8
commit 91ff6b9edb
+2 -2
View File
@@ -65,8 +65,8 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps)
? {}
: {
onClick: () => setBouncing(id),
animate: bouncing === id ? { y: [0, -18, 0, -6, 0] } : { y: 0 },
transition: { duration: 0.5, ease: "easeOut" as const },
animate: bouncing === id ? { y: [0, -5, 0, -2, 0] } : { y: 0 },
transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] },
onAnimationComplete: () => setBouncing((cur) => (cur === id ? null : cur)),
};