Jump to content
Search Community

Draggable sync fails

potatoDie test
Moderator Tag

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello GreenSocks,


I cannot get syncing / resetting a draggable to work. Please, see my pen.


The red dot is a (Draggable) slider. When user changes number of control points, I remove the transform on the target and call Draggable.update(). But unfortunately, the x property remains the same.


Would be great if you could have a look at it!




See the Pen WbOWGY by potatoDie (@potatoDie) on CodePen

Link to comment
Share on other sites

  • Solution

Hi potatoDie  :)


pls provide a reduced Codepen demo for next time  , 

use this to set x:0 : TweenMax.set(sprite,{x:0}); , it's always best to set draggable element's x/y directly through GSAP 


check this out : 

See the Pen emEVWg by MAW (@MAW) on CodePen


and pls check this post too : 



  • Like 3
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.
  • Create New...