Share Posted January 6, 2022 why every time I hover on link my radius of animated circle changed? See the Pen RwLJOLB by abd786007 (@abd786007) on CodePen Link to comment Share on other sites More sharing options...
Share Posted January 6, 2022 Heya! You're telling it to scale here - gsap.to(cursorInner, hoverEffectDuration, { scale: 1.6, }); gsap.to(cursorOuter, hoverEffectDuration, { scale: 1.2, // opacity: 0, }); 1 Link to comment Share on other sites More sharing options...
Author Share Posted January 6, 2022 @Cassie no i am not talking about cursorInner or cursorOuter. I am talking about round animated text. cursorTextContainerEl hover three time on link you will understand. Link to comment Share on other sites More sharing options...
Solution Solution Share Posted January 6, 2022 Because that animated circle text is being appended as a child of your cursor, so it's getting the scale property from its parent. 2 Link to comment Share on other sites More sharing options...
Author Share Posted January 6, 2022 @elegantseagulls got it. Thanks 😉 Link to comment Share on other sites More sharing options...
Share Posted January 6, 2022 Oh right, what an odd one.. I removed all the scaling and actually it looks like rotation is causing an issue. If you get rid of the rotation tween it works fine. I don't know how the third party library work that you're using for the circle text - so I'm afraid I can't really advise any more, something is messing with the calculations it needs... See the Pen NWaBWoO?editors=0010 by GreenSock (@GreenSock) on CodePen Maybe you could roll your own solution?https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath 2 Link to comment Share on other sites More sharing options...
Author Share Posted January 6, 2022 @Cassie Great Thank you 😇!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now