cbert Posted February 17, 2021 Share Posted February 17, 2021 Hi there, I'm brand new to gsap, so far I must say, great quality and documentation! Nevertheless, I'm currently stuck with the following issue: I have a pannable and zoomable container (=> transformed container) inside which I move elements around via gsap draggable. To add new elements I'd like to point the pointer to an area inside this container and then add the element in that place. So far, I couldn't find a way to get similar properties as I get with pointerX or pointerY that are relative to the transformed container. Is there any way I could use gsap to get this? I hope it's clear what I'd like to achieve 😀 Thanks in advance! Link to comment Share on other sites More sharing options...
ZachSaucier Posted February 17, 2021 Share Posted February 17, 2021 Hey cbert and welcome to the GreenSock forums. Thank for supporting GreenSock with a Business Green membership! It's pretty hard to say without seeing a minimal demo of the set up. It might be a situation where MotionPathPlugin's static functions would be of great help: https://greensock.com/docs/v3/Plugins/MotionPathPlugin Link to comment Share on other sites More sharing options...
cbert Posted February 17, 2021 Author Share Posted February 17, 2021 Hi @ZachSaucier Thanks for the quick reply, and more than welcome! Yes, I totally understand that. I will read more into MotionPathPlugin first and if still needed will try to come up with a minimal demo. 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