speed up animation

This commit is contained in:
Samuel Newman
2024-12-11 23:21:14 +00:00
parent cfff3498ad
commit ed4cbf42cf
+3 -1
View File
@@ -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(