Skip to content

Commit

Permalink
Fix opacity issue in global navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Feb 20, 2024
1 parent 5eb2017 commit d7eca9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/blog/src/components/GlobalNavigationBackground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function GlobalNavigationBackground() {
container.style.opacity = scrollY > 0 ? "1" : "0";
};

handleScroll();

window.addEventListener("scroll", handleScroll, { passive: true });

return () => {
Expand Down

0 comments on commit d7eca9e

Please sign in to comment.