import { useEffect, useRef } from "react"; import { gsap } from "gsap"; import { SplitText } from "@/plugins"; import Link from "next/link.js"; import ArrowIcon from "../../../public/assets/imgs/hero/4/arrow-icon.png"; import Hero4 from "../../../public/assets/imgs/hero/4/hero-4.png"; import HeroShape from "../../../public/assets/imgs/hero/4/hero-shape.png"; import HeroShape2 from "../../../public/assets/imgs/hero/4/hero-shape-2.png"; import HeroShape3 from "../../../public/assets/imgs/hero/4/hero-shape-3.png"; import Shape20 from "../../../public/assets/imgs/shape/20.png"; import Image from "next/image.js"; const StartupAgencyHero = () => { const heroTitle = useRef(); const heroText = useRef(); const heroAnchor = useRef(); const heroImg = useRef(); useEffect(() => { if (typeof window !== "undefined") { let tHero = gsap.context(() => { gsap.set(heroImg.current, { opacity: 0, y: 50, }); gsap.set(heroAnchor.current, { opacity: 0, y: 50, }); let split_hero6_title = new SplitText(heroTitle.current, { type: "chars", }); let split_hero6_desc = new SplitText(heroText.current, { type: "chars words", }); gsap.from(split_hero6_title.chars, { duration: 1, x: 70, autoAlpha: 0, stagger: 0.1, }); gsap.from( split_hero6_desc.words, { duration: 1, x: 50, autoAlpha: 0, stagger: 0.05 }, "-=1" ); gsap.to( heroAnchor.current, { opacity: 1, y: 0, duration: 1, ease: "power2.out" }, "-=1.5" ); gsap.to( heroImg.current, { opacity: 1, y: 0, duration: 1, ease: "power2.out" }, "-=1" ); }); return () => tHero.revert(); } }, []); return ( <>
Arrow Icon

Magical
Axtra Startup Solution{" "}

Our team always reviews all previous methods with
{" "} models, and processes to determined

Get Started
Hero Image
Shape Image Layout Star Icon Star Icon
); }; export default StartupAgencyHero;