and I can drag this div, but when I remove th...">

How to disable dragend animation in html5

html

<div id="test" draggable='true'></div>

      

and I can drag this div, but when I remove the element, there is an animation where the element goes back to its original position

how to disable this animation? I am using preventDefault () on dragend event, is it not working?

My English is not perfect, thanks a lot

enter image description here

+3
html5 drag


source to share


No one has answered this question yet

Check out similar questions:

3856
Change HTML5 placeholder color with CSS
2350
Storing objects in HTML5 localStorage
874
Using HTML5 / Canvas / JavaScript to take screenshots in the browser
536
Is there a float input type in HTML5?
408
Disable HTML5 form element validation
264
HTML5 drablave fires on hover of child element
five
HTML5 drag-drop element over div with Hammer.js drag events
4
JQuery sorted, dragged between two lists, undo drop: how to animate?
1
Disable links during Javascript drag events
0
Dragging HTML5 drag-drop event on wrong window



All Articles
Loading...
X
Show
Funny
Dev
Pics