From 4ab7c85c257a153088f350c8b42f7751f3d6d087 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Fri, 21 Feb 2025 19:59:02 +0330 Subject: [PATCH] Updated --- frontend/components/home/Categories.vue | 30 ------------------------- 1 file changed, 30 deletions(-) diff --git a/frontend/components/home/Categories.vue b/frontend/components/home/Categories.vue index bac2cfe..6b76e5f 100644 --- a/frontend/components/home/Categories.vue +++ b/frontend/components/home/Categories.vue @@ -8,15 +8,7 @@ import useHomeData from "~/composables/api/home/useHomeData"; // state -const { $gsap: gsap } = useNuxtApp(); - const { data: homeData } = useHomeData(); - -const sectionTarget = ref(null); -const isSectionInsideViewport = useElementVisibility(sectionTarget, { - rootMargin: "0% 0px -100% 0px" -}); - const swiper_instance = ref(null); // methods @@ -25,28 +17,6 @@ const onSwiper = (swiper: SwiperClass) => { swiper_instance.value = swiper; }; -// watch - -watch(() => isSectionInsideViewport.value, (newValue) => { - if (newValue) { - gsap.fromTo("#header-navbar", { - background: "white", - filter: "invert(0%)" - }, { - background: "transparent", - filter: "invert(100%)" - }); - } else { - gsap.fromTo("#header-navbar", { - background: "transparent", - filter: "invert(100%)" - }, { - background: "white", - filter: "invert(0%)" - }); - } -}); -