import { useEffect } from "react"; import { gsap } from "gsap"; import { ScrollTrigger } from "@/plugins"; import Link from "next/link"; import Award1 from "../../../public/assets/imgs/awards/awards-01.png"; import Award2 from "../../../public/assets/imgs/awards/awards-02.png"; import Award3 from "../../../public/assets/imgs/awards/awards-03.png"; import Award4 from "../../../public/assets/imgs/awards/awards-04.png"; import Award5 from "../../../public/assets/imgs/awards/awards-05.png"; import Image from "next/image"; gsap.registerPlugin(ScrollTrigger); const ModernAgencyWork2 = () => { useEffect(() => { if (typeof window !== "undefined") { let device_width = window.innerWidth; let tHero = gsap.context(() => { gsap.set(".fade_bottom", { y: 30, opacity: 0 }); if (device_width < 1023) { const fadeArray = gsap.utils.toArray(".fade_bottom"); fadeArray.forEach((item, i) => { let fadeTl = gsap.timeline({ scrollTrigger: { trigger: item, start: "top center+=200", }, }); fadeTl.to(item, { y: 0, opacity: 1, ease: "power2.out", duration: 1.5, }); }); } else { gsap.to(".fade_bottom", { scrollTrigger: { trigger: ".fade_bottom", start: "top center+=300", markers: false, }, y: 0, opacity: 1, ease: "power2.out", duration: 1, stagger: { each: 0.2, }, }); } }); return () => tHero.revert(); } }, []); return ( <>
awards

04

It’s our
glory for
awards

{ "We're passionate about doing the best digital innovation and we achieve results we're proud of." }

x2

Awwwards Interior
Excellence

2017
x1

FWA,
Site of the Day

2015
x3

Architect Design
Awards

2020
x2

Advance High
Technology

2021
x2

Awwwards Interior
Excellence

2017
x1

Digital Agencies
Worldwide

2015
); }; export default ModernAgencyWork2;