I'm kind of a beginner in web development, so I'm not entirely sure if I'm on the right track here, but I've been trying to create cursor trails for some movable text. You can see the effect in the pen, and it seems to work. However I've been wanting to try and center the text to the cursor, which I just can't seem to do. Most video tutorials suggest using transform: translate(-50%,-50%), which seems to work for them, but not for me. I've attempted to do this moving text effect with jQuery and pure js, but that produces some really choppy animation- especially on chrome and safari. Gsap seems to consistently perform well across browsers, so I've been trying to get this to work.
So I've been experimenting, and have found myself confused here- does x: e.clientX and y: e.clientY both animate using the translate3D css property? Is this overwriting transform: translate(-50%,-50%) ? Is there a simple way to fix this, or do I have to resort to figuring out some math on the js side of things? Thanks in advance.