import { useEffect } from "react"; import { gsap } from "gsap"; import { ScrollTrigger } from "@/plugins"; import Link from "next/link.js"; import Blog31 from "../../../public/assets/imgs/blog/3/1.jpg"; import Blog32 from "../../../public/assets/imgs/blog/3/2.jpg"; import Image from "next/image.js"; gsap.registerPlugin(ScrollTrigger); const DigitalMarketingBlog = () => { useEffect(() => { if (typeof window !== "undefined") { let device_width = window.innerWidth; let tHero = gsap.context(() => { gsap.set(".blog__animation .blog__item-3", { x: 50, opacity: 0 }); if (device_width < 1023) { const blogList = gsap.utils.toArray(".blog__animation .blog__item-3"); 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-3", { scrollTrigger: { trigger: ".blog__animation .blog__item-3", 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

Read Updated
Journal

Read our blog and try to see everything from every perspective. Our passion lies in making everything accessible and aesthetic for everyone.{" "}

Blog Thumbnail Blog Thumbnail

UI Design . 02 May 2019

How to bring fold to your startup company with Axtra
Read More{" "}
Blog Thumbnail Blog Thumbnail

UI Design . 02 May 2019

How to manage a talented and successful design team
Read More{" "}
); }; export default DigitalMarketingBlog;