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 11, 2024
1 parent cfff349 commit ed4cbf4
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 ed4cbf4

Please sign in to comment.