@pikapikamart
Posted
Hey, upon looking at your stylings, the transform: translate
is the causing it, but not it itself, but when you scroll to the element and fires something, is that what GSAP does? Like an event listener? . Also looking at it, there doesn't seem to add any stylings but a transform is appearing on it. I can't really much explain how it does since I don't see any codes adding a style to it. But if you were to use something that fires when you're element is seen, I personally use IntersectionObserver api for that
@rontoyhacao
Posted
@pikamart Hi, the transform
property is because of GSAP, I think it's GSAP that's causing it to not be centered at its first load. It's my first time using GSAP that is why I have no idea about it. I was just curious on using it. But anyhow thank you for the response I appreciate it. :))
@pikapikamart
Posted
@rontoyhacao Oh I see, well goodluck to using GSAP for other challenges^^