Skip to content

Commit

Permalink
fix animation
Browse files Browse the repository at this point in the history
  • Loading branch information
plebeius-eth committed Oct 14, 2024
1 parent 8e245a4 commit 3918d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/topbar/topbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
position: fixed;
width: 100%;
z-index: 3;
transition: top 0.3s ease-in-out;
transition: top 0.2s ease-in-out;
align-items: center;
justify-content: space-around;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/topbar/topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const TopBarMobile = ({ subplebbitAddress }: { subplebbitAddress: string }) => {

setVisible(prevScrollPos > currentScrollPos || currentScrollPos < 10);
prevScrollPosRef.current = currentScrollPos;
}, 25);
}, 50);

window.addEventListener('scroll', debouncedHandleScroll);

Expand Down

0 comments on commit 3918d23

Please sign in to comment.