NicolasRaymond Posted January 3, 2020 Posted January 3, 2020 Hi ! I'm very new at using GSAP and I not succeed to make what I need. I have a list of img ( 3 ) centered in the web page, when I click on one of them, I want to scale and move so I have done that : this.gsapTest = gsap.to('idOfImg',{ x:-300, y:40, scale:1.5, duration:0.6, ease:"power2.inOut" }) I would like to "force" the position a the end of the animation to a specific position in the web page for every img. not according to its starting point is it possible to define a "drop zone" for my img ? i don't know if I'm clear enough Thanks ! PS : sorry if my English is not perfect it's not my language.
mikel Posted January 4, 2020 Posted January 4, 2020 Hey @NicolasRaymond, Welcome to the GreenSock Forum. Maybe this is an option for your intention: See the Pen povdBdY by mikeK (@mikeK) on CodePen. Happy tweening ... Mikel 2
NicolasRaymond Posted January 8, 2020 Author Posted January 8, 2020 hey ! Many thanks ! I'll try that 1
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