import { useEffect } from "react"; import { gsap } from "gsap"; import { ScrollTrigger } from "@/plugins"; import Link from "next/link.js"; import Blog41 from "../../../public/assets/imgs/blog/4/1.jpg"; import Blog42 from "../../../public/assets/imgs/blog/4/2.jpg"; import Image from "next/image.js"; gsap.registerPlugin(ScrollTrigger); const StartupAgencyBlog = () => { useEffect(() => { if (typeof window !== "undefined") { let device_width = window.innerWidth; let tHero = gsap.context(() => { gsap.set(".blog__animation .blog__item-4", { x: 50, opacity: 0 }); if (device_width < 1023) { const blogList = gsap.utils.toArray(".blog__animation .blog__item-4"); blogList.forEach((item, i) => { let blogTl = gsap.timeline({ scrollTrigger: { trigger: item, start: "top center+=200", }, }); blogTl.to(item, { x: 0, opacity: 1, ease: "power2.out", duration: 1.5, }); }); } else { gsap.to(".blog__animation .blog__item-4", { scrollTrigger: { trigger: ".blog__animation .blog__item-4", start: "top center+=300", markers: false, }, x: 0, opacity: 1, ease: "power2.out", duration: 2, stagger: { each: 0.3, }, }); } }); return () => tHero.revert(); } }, []); return ( <>

Recent Blog

Updated
Journal

We help brands stand out through aweful, elegant visual design. Our design mainly philosophy.

All Articles{" "}
Blog Image

UI Design{" "} 02 May 2019

Ways of lying to yourself about your new relationship.
Read More{" "}
Blog Image

UX Design{" "} 02 May 2019

Ways of lying to yourself about your new relationship.
Read More{" "}
); }; export default StartupAgencyBlog;