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


source to share





All Articles