Updated Drag and Drop Transition Code

Improved method code