import { useEffect, useRef } from "react"; import { gsap } from "gsap"; import { SplitText } from "@/plugins"; // Make sure SplitText is imported correctly import Image from "next/image"; import Link from "next/link"; // Optimized image imports import ArrowDownBig from "../../../public/assets/imgs/icon/arrow-down-big.png"; import Hero1bg from "../../../public/assets/imgs/hero/1/1-bg.webp"; // Optimized Font Awesome import (optional, for specific icons) import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faArrowRight } from '@fortawesome/free-solid-svg-icons'; const DigitalAgencyHero = () => { const heroTitle = useRef(); const heroSubTitle = useRef(); useEffect(() => { if (typeof window !== "undefined") { let tHero = gsap.context(() => { gsap.set(".experience", { y: 50, opacity: 0, }); let split_hero__title = new SplitText(heroTitle.current, { type: "chars", }); let split_hero__subtitle = new SplitText(heroSubTitle.current, { type: "chars words", }); gsap.from(split_hero__title.chars, { duration: 0.5, x: 70, autoAlpha: 0, stagger: 0.1, }); gsap.from( split_hero__subtitle.words, { duration: 1, x: 50, autoAlpha: 0, stagger: 0.005 }, "-=1" ); gsap.to( ".experience", { y: 0, opacity: 1, duration: 2, ease: "power2.out", }, "-=1.5" ); }); return () => tHero.revert(); } }, []); return (

Book Your Demo Now{" "}

STOP SEARCHING. YOU’VE FOUND THE TOP{" "} SYSTEM INTEGRATOR PARTNER

SyncROI specialized in AI and Internal System Integrations, Work Flow Automation, Cloud Services, and Marketing Outreach, SyncROI Offers a customized services or SAAS technologies to suit your budget needs..

Arrow Down Icon

100+

Satisfied Clients

Background Image
); }; export default DigitalAgencyHero;