I am working on a drag and drop interface using native drag and drop html5 api. We have used jQuery draggable for other pieces but it is performing poorly for this particular piece, so we are going with raw JavaScript.
Essentially the markup looks like this...
<li draggable="true">
<div class="esia_img esia_amex"></div>
<span class="esia_imgTitle flo">AmEx</span>
</li>
<li draggable="true">
<div class="esia_img esia_visamc"></div>
<span class="esia_imgTitle flo">VisaMC</span>
</li>
I create an addEventListener for 'dragstart' and run the following function
function dragStart (e) {
var t = this;
n(t).addClass('rot_15');
e.dataTransfer.effectAllowed = 'move';
}
It will apply my class perfectly to the original element but I can not seem to move the original element. Browsers create a 'clone/ghost' image...I seen where you can create your own image to show while dragging using 'setDragImage' but how can I drag the actual element the user is dragging?