From 5c1ab8d4bb34d34b5eab1c948b487020f84090d4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 11 Dec 2024 23:21:14 +0000 Subject: [PATCH] speed up animation --- src/screens/Profile/Header/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/Profile/Header/index.tsx b/src/screens/Profile/Header/index.tsx index 7272c4745a..09841f4590 100644 --- a/src/screens/Profile/Header/index.tsx +++ b/src/screens/Profile/Header/index.tsx @@ -110,7 +110,9 @@ const MinimalHeader = React.memo(function MinimalHeader({ } const pastThreshold = scrollY.get() > 100 return { - opacity: pastThreshold ? withTiming(1) : withTiming(0), + opacity: pastThreshold + ? withTiming(1, {duration: 75}) + : withTiming(0, {duration: 75}), transform: [ { translateY: Math.min(