Folks, how can i update the styles of dragged element
- Update the element which is under drag
- Update the position/space from where the element was dragged
it seems that using
event.target.addClass or event.target.styles. etc
updates the element which is under drag as well as position from where it was taken
please take a look at this screenshot link, this is what i want to achieve
when dragging the element, basically onDragStart
thank you
question from:
https://stackoverflow.com/questions/65925912/drag-and-drop-html5 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…