momo12 Posted October 25, 2022 Share Posted October 25, 2022 Hello guy, Can someone help me to understand what I must do to let green circle only moves within the red circle? I'm using GSAP. I know how to do it for a page I just don't know how it works for an element. See the Pen JjZjdmN by emdesigner-or (@emdesigner-or) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted October 25, 2022 Share Posted October 25, 2022 That involves custom math, like using Math.cos() and Math.sin() based on a radius, etc. That's well beyond the scope of help we can provide here for free in the forums (please read the forum guidelines) but you're welcome to post in the Jobs & Freelance forums or contact us directly for paid assistance. Good luck! 👍 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