drex Posted May 20, 2022 Share Posted May 20, 2022 Hi all, I'm new to gsap, I would like to know if it's possible to mask a running text change the color of the element that is inside the circle when its above div (circle). Please see attached image for reference. Thank you and have a good day. What I'm trying to achieve Link to comment Share on other sites More sharing options...
GSAP Helper Posted May 20, 2022 Share Posted May 20, 2022 We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations. You can post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. Link to comment Share on other sites More sharing options...
Cassie Posted May 20, 2022 Share Posted May 20, 2022 This thread may help nudge you in the right direction though - Good luck! 2 Link to comment Share on other sites More sharing options...
drex Posted May 20, 2022 Author Share Posted May 20, 2022 1 hour ago, Cassie said: This thread may help nudge you in the right direction though - Good luck! thanks, this will help me point to the right direction. 1 Link to comment Share on other sites More sharing options...
PointC Posted May 20, 2022 Share Posted May 20, 2022 Some other examples. See the Pen XWXvpBd by PointC (@PointC) on CodePen See the Pen pydXLG by PointC (@PointC) on CodePen Tutorials. https://www.motiontricks.com/svg-masks-and-clippaths/ https://www.motiontricks.com/invert-svg-text-with-a-mask/ Happy tweening. 2 Link to comment Share on other sites More sharing options...
drex Posted May 20, 2022 Author Share Posted May 20, 2022 5 hours ago, Cassie said: This thread may help nudge you in the right direction though - Good luck! based on this example the you have given. I did some little changes and were able to got this. Thank you. See the Pen YzeQrMy by andsien (@andsien) on CodePen 2 Link to comment Share on other sites More sharing options...
Cassie Posted May 20, 2022 Share Posted May 20, 2022 Nicely done 🥳 1 Link to comment Share on other sites More sharing options...
PointC Posted May 20, 2022 Share Posted May 20, 2022 Looking good. 👍 1 Link to comment Share on other sites More sharing options...
drex Posted May 21, 2022 Author Share Posted May 21, 2022 Thank you for your replies. What I'm trying to do next is make the circle bigger and move the text on scroll wheel. This is what I'm trying to achieve but with masking when text is inside the circle See the Pen RwLJMeL by snorkltv (@snorkltv) on CodePen Link to comment Share on other sites More sharing options...
drex Posted May 21, 2022 Author Share Posted May 21, 2022 Finally got the right behavior that I'm looking. Thanks for your help guys See the Pen GRQEPeL by andsien (@andsien) on CodePen 1 Link to comment Share on other sites More sharing options...
drex Posted May 26, 2022 Author Share Posted May 26, 2022 Hi guys! So I'm almost done with my project but when I tried it on FireFox the masking is not working. Any reasons? Thank you for your help. Link to comment Share on other sites More sharing options...
Solution Cassie Posted May 26, 2022 Solution Share Posted May 26, 2022 Try using unit values instead of percentages. That can cause issues. See the Pen oNEpNKv by GreenSock (@GreenSock) on CodePen 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