Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo 🐬 pfp
Darryl Yeo 🐬
@darrylyeo
Coming soon to the DOM API: `Node#moveBefore()` will let you “re-parent” or change an element’s position in the DOM without losing its state. Very useful for stateful elements like form controls, iframes, videos, modals and anything with CSS pseudo-class styling. Will also make the “portal” pattern in many frameworks and component libraries obsolete. Can’t wait to see the sophisticated animations and layout transitions that will inevitably come out of this. https://github.com/whatwg/dom/issues/1255 https://youtu.be/P6XVncHCbPw
0 reply
2 recasts
12 reactions