Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
drex

Change text color (mask) inside a circle

Go to solution Solved by Cassie,

Recommended Posts

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

image.jpeg.033f7d6bedb08742695130f45e52754a.jpeg

Link to comment
Share on other sites

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

This thread may help nudge you in the right direction though - 

 

Good luck!

 

  • Like 2
Link to comment
Share on other sites

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. 

  • Like 1
Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

Nicely done 🥳

  • Like 1
Link to comment
Share on other sites

Looking good. 👍

  • Like 1
Link to comment
Share on other sites

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

Finally got the right behavior that I'm looking. Thanks for your help guys

 

See the Pen GRQEPeL by andsien (@andsien) on CodePen

  • Like 1
Link to comment
Share on other sites

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

  • Solution

Try using unit values instead of percentages. That can cause issues.

 

See the Pen oNEpNKv by GreenSock (@GreenSock) on CodePen

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×