Like in a drag n drop page builder, when you are dragging an element to put it in 'canvas' it shows you a marker where the element dragged would be inserted if you dropped it now. But also, after dropping, the elements before or after are moved away in the document..

How can accomplish both effects?

ps: preferably without using ui sortable.