import { useEffect, useRef, useState } from "react"; import { gsap } from "gsap"; import { ScrollTrigger } from "@/plugins"; import Link from "next/link"; import Service11 from "../../../public/assets/imgs/service/1/1.png"; import Service12 from "../../../public/assets/imgs/service/1/2.png"; import Service13 from "../../../public/assets/imgs/service/1/3.png"; import Service15 from "../../../public/assets/imgs/service/1/4.png"; import Service16 from "../../../public/assets/imgs/service/1/5.png"; import Service14 from "../../../public/assets/imgs/service/1/6.png"; import Image from "next/image"; gsap.registerPlugin(ScrollTrigger); const DigitalAgencyService = () => { const [activeList, setActiveList] = useState(1); const [activeImg, setActiveImg] = useState(1); const [activeShape, setActiveShape] = useState(1); const serviceList = useRef(); useEffect(() => { if (typeof window !== "undefined") { let listItem = serviceList.current.children; console.log(listItem); for (let i = 0; i < listItem.length; i++) { listItem[i].addEventListener("mousemove", function (e) { var service_id = this.getAttribute("data-service"); setActiveImg(parseInt(service_id)); setActiveShape(parseInt(service_id)); if (service_id != 1) { setActiveList(0); } }); listItem[i].addEventListener("mouseout", function (e) { var service_id = this.getAttribute("data-service"); setActiveList(parseInt(service_id)); }); } let tHero = gsap.context(() => { let home1_services = gsap.utils.toArray(".animation_home1_service"); let service__number = gsap.utils.toArray( ".animation_home1_service .service__number span" ); let service__title = gsap.utils.toArray( ".animation_home1_service .service__title" ); let service__text = gsap.utils.toArray( ".animation_home1_service .service__text p" ); let service__link = gsap.utils.toArray( ".animation_home1_service .service__link p" ); home1_services.forEach((service, i) => { gsap.set( [ service__number[i], service__title[i], service__text[i], service__link[i], ], { opacity: 0, x: -50 } ); let home1ServiceTl = gsap.timeline({ scrollTrigger: { trigger: service, start: "top center+=300", end: "bottom bottom", markers: false, }, }); home1ServiceTl.to(service__number[i], { x: 0, opacity: 1, duration: 1.2, }); home1ServiceTl.to( service__title[i], { x: 0, opacity: 1, duration: 1.2, }, "-=1" ); home1ServiceTl.to( service__text[i], { x: 0, opacity: 1, duration: 1.2, }, "-=1" ); home1ServiceTl.to( service__link[i], { x: 0, opacity: 1, duration: 1.2, }, "-=1" ); }); }); return () => tHero.revert(); } }, []); return ( <>

Our services

Unlock operational efficiency
like never before

From innovative branding and immersive customer experiences,
to cutting-edge e-commerce solutions and emerging technologies,
we craft and evolve digital brands that lead in the modern marketplace.

Learn
More
Service Image Service Image Service Image Service Image Service Image Service Image
01

AI & Internal System Integration

Integrate advanced AI and internal systems seamlessly to optimize your business operations and enhance decision-making processes.

02

SAAS Solutions

Deliver scalable and reliable SAAS solutions tailored to your business needs, enabling efficient software deployment and management.

03

Web & Mobile
Development

Develop cutting-edge web and mobile applications that drive engagement, improve user experience, and accelerate your digital transformation.

04

Digital Marketing

Implement targeted digital marketing strategies to boost your brand visibility, attract qualified leads, and maximize ROI.

05

Professional
Designing

Create professional and innovative designs that effectively communicate your brand message and captivate your audience.

06

Special Automations
& Workflow Developments

Automate complex workflows and develop custom solutions to streamline operations, reduce manual effort, and increase efficiency.

); }; export default DigitalAgencyService;