tarwin
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by tarwin
-
-
Hi,
Thanks for the amazing tool. I'm having some problems resetting the position of my Draggable object when I re-create it. In my example the second image doesn't show properly but that's fine.
To replicate my problem simply drag the image a little, click the new link twice, and you will see that the image is where you left it. I'd expect it to reset position.
Is there a way I can reset the position? I hope this is something with Draggable rather than being embarrassed by it being my crappy code.
A second quick question. Is there a reason that you cannot set the "trigger" on any element and only on a child element? It would be useful if it was otherwise.
Thanks,
-
Is there a way to reset a Draggable to center? If I set the following CSS either before or after it causes problems such as when I first drag it jumps.
'transform': 'translate3d(0px,0px,0px)'
-
Is there a way to pass an element to "trigger" that is not a child? Is there a reason that it is children only?
Draggable: Resetting position
in GSAP
Posted
Thanks for the help people. My actual application (very Alpha @ http://specter.co/app/ - if you want to play it works best on phones - only a demo so please ignore the horribly structured code) is a bit more complex than my example so I'm going to keep looking into it. I think this will give me something to look into.