Skip to content

Commit

Permalink
speed up animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Dec 12, 2024
1 parent 0428ef3 commit 5c1ab8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/screens/Profile/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5c1ab8d

Please sign in to comment.