While patching, DOM.applyStickyOperations(toEl) re-plays all stored DOM operations which should stick through patching!
While patching, DOM.applyStickyOperations(toEl) re-plays all stored DOM operations which should stick through patching!
morphdom `onBeforeElUpdated(fromEl, toEl)` callback allows tapping into the transform. LV uses it to re-apply DOM "sticky" operations to the toNode, the "target" state.
morphdom `onBeforeElUpdated(fromEl, toEl)` callback allows tapping into the transform. LV uses it to re-apply DOM "sticky" operations to the toNode, the "target" state.
The DOM patching is done by morphdom, which transforms the existing DOM tree to match a new DOM tree in order to preserve internal state of the original elements
The DOM patching is done by morphdom, which transforms the existing DOM tree to match a new DOM tree in order to preserve internal state of the original elements
Demo: gio.wtf/demos/sticky...
Here's the explanation of how it works:
Demo: gio.wtf/demos/sticky...
Here's the explanation of how it works:
Would love to hear your thoughts. And totally agree with Elixir happiness 😁
Would love to hear your thoughts. And totally agree with Elixir happiness 😁