observeMove

external fun observeMove(element: HTMLElement, callback: () -> Unit): () -> Unit

Observe moving an element around on a page.

Based on the idea from https://samthor.au/2021/observing-dom/ as implemented in Floating UI https://github.com/floating-ui/floating-ui/blob/58ed169/packages/dom/src/autoUpdate.ts#L45