diff --git a/app/(utils)/homepage-timeline.ts b/app/(utils)/homepage-timeline.ts index 2b5887e..c04551a 100644 --- a/app/(utils)/homepage-timeline.ts +++ b/app/(utils)/homepage-timeline.ts @@ -22,22 +22,24 @@ export default function homepageTimeline({ componentRef }: { componentRef: { cur /** * Origin */ - if (scrollTop < 300) { - gsap.to("nav", { - opacity: 1, - pointerEvents: "visible", - }); - gsap.to("header", { - zIndex: 2000, - }); - } else { - gsap.to("nav", { - opacity: 0, - pointerEvents: "none", - }); - gsap.to("header", { - zIndex: 0, - }); + if (!isMobile) { + if (scrollTop < 300) { + gsap.to("nav", { + opacity: 1, + pointerEvents: "visible", + }); + gsap.to("header", { + zIndex: 2000, + }); + } else { + gsap.to("nav", { + opacity: 0, + pointerEvents: "none", + }); + gsap.to("header", { + zIndex: 0, + }); + } } /** diff --git a/layouts/general_layout/GeneralHeader.tsx b/layouts/general_layout/GeneralHeader.tsx index a4093ce..0ee52b0 100644 --- a/layouts/general_layout/GeneralHeader.tsx +++ b/layouts/general_layout/GeneralHeader.tsx @@ -61,7 +61,7 @@ const GeneralHeader = (): React.ReactElement => { {