Draggable.create("#myDIV", {
type:"x",
zIndexBoost:false,
throwProps:false,
onDragEnd:function() {
TweenMax.to($("#myDIV"), 5,{css:{left: 0}});
console.log('DRAG END');
},
});
TweenMax.to($("#myDIV"), 5,{css:{left: 0}}); I wanted this to trigger every time drag ends, but this only animates only once and is not accurately goes to its original position