"use client"; import { useEffect } from "react"; import gsap from "gsap"; import { ScrollTrigger } from "gsap/dist/ScrollTrigger"; import Image from "next/legacy/image"; import Link from "next/link"; const ServicesBanner = () => { useEffect(() => { gsap.registerPlugin(ScrollTrigger); if (document.querySelector(".service-banner")) { const tl = gsap.timeline({ scrollTrigger: { trigger: ".service-banner", start: "center center", end: "+=100%", scrub: true, pin: false, }, }); tl.to(".thumb-one", { opacity: 0.3, y: "-100%", zIndex: -1, duration: 2, }); tl.to( ".thumb-two", { opacity: 0.3, scale: 2, y: "100%", zIndex: -1, duration: 2, }, 0 ); } }, []); return (
Enterprise Services

The end-to-end bespoke software development company you need

Empower your business with sophisticated tech solutions by GNX. From ideation to implementation, with a team of experts right at your fingertips

Get Free Quote Explore Services
Scroll
); }; export default ServicesBanner;