No problem
I like GSAP very much!
The hole project is quiet complex and I am not very familiar with codepen and jsfiddle. Maybe two screenmovies can help?
part of my code:
/** make dragItem draggable */
this.dgbs = Draggable.create(this.dragItem.d, {
type: 'top,left',
edgeResistance: 0.5,
bounds: {top: 0, left: 0, width: dob.w.w, height: dob.w.h},
throwProps: true,
onDragStart: function() {
window.dm.startDrag();
},
onDrag: function() {
window.exc.drag();
},
onThrowUpdate: function() {
window.exc.drag();
},
onThrowComplete: function() {
window.exc.drag();
},
onDragEnd: function() {
window.exc.xRew = this.xTgt;
window.exc.yRew = this.yTgt;
window.dm.endDrag();
}
});
0_9_6.mov
0_9_8.mov