Hey guys! So I have a project with gsap to animate the elements and I made one of the text animations using them in absolute position. But when I try to center them horizontally and vertically on the screen with top 50%, left 50% and translate 50% 50%, it doesn’t work, I believe it’s because gsap is already applying a translate with the animation. How would you apply the animation and at the same time center them?
For the second text, you can center it using grid or flexbox on the container. Just adding display: grid to the .hero-section selector pretty much centers it.